This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem updating quantity field
 
Similar Threads
problem incrementing loop in jstl
HTML does not print properly - table width exceeding 100%?
How to get a scriptlet value for javascript validation
jsp:include and c:import combination/nesting
Print Multiple Lines with out.write