SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg wrote:Well I think you need to provide one more code and that is of the action which is handling the form of the first page. In the first page you have written the action of your form as dispatcher. You code for listEmp2.jsp is also wrong I think. There you have used an object order in line 48. But I can't find that object declared in the file. Also in line 74 you are using the object item but you have commented that object on line 97.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg wrote:I am talking about this thing
<FORM ACTION="dispatcher" METHOD="POST">
There must be a servlet mapped to dispatcher URL, just post the code of that. If you can't, then it's simple to do if you understand my instructions. Your page will give you the quantity and ID of the medicine. You can take that to get the medicine that the user chose and add it to the session as an attribute. To do this I would recommend that you build a List and add it as an attribute to the session. Whenever a new item is added to the cart, just take out the list from the session and update it. I think you'll understand what I am trying to say...
Jia Bin Tang wrote: I'm not using MVC 2 Model
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
seetharaman venkatasamy wrote:
Jia Bin Tang wrote: I'm not using MVC 2 Model
There is no such thing called MVC2 . Model2 design is nothing but MVC
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg wrote: There must be no scripting in JSPs.
Jia Bin Tang wrote:
Ankit Garg wrote: There must be no scripting in JSPs.
Hi, sorry for reviving old thread again, but I don't quite understand this part.
I saw some books that even writes the business logics on the JSP page itself (though I don't prefer to do that).
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|