aspose 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


Win a copy of Spring in Action this week in the Spring forum!
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 ]
 
Don't get me started about those stupid light bulbs.
 
subject: problem updating quantity field