• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

problem updating quantity field

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic