File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes problem updating quantity field    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem updating quantity field    " Watch "problem updating quantity field    " New topic
Author

problem updating quantity field

John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
I am trying a modified example from a book. It is a shopping cart page. When i hit the update quantity button on the first line item the quantity updates correctly. Any other line item below that doesnt update. I have the form tags outside of the loop right now. I tried putting the form tags within the loop and i can then update all the line items. However in the book example the form tags are outside of the loop. Which is the corrcet way to do this? is it ok to have multiple form tags within the loop or is there a better way to do this?



JSP code


Servlet



[ September 22, 2008: Message edited by: John Schretz ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem updating quantity field
 
Similar Threads
jsp:include and c:import combination/nesting
problem incrementing loop in jstl
How to get a scriptlet value for javascript validation
HTML does not print properly - table width exceeding 100%?
Print Multiple Lines with out.write