• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

passing hidden forms problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, I am new to servlets- jsp and I have been trying to write a session track problem but I have some trouble in passing hidden form "names" to servlet.
No matter which item I choose from drop down list , I always see the first item in the orderpage which is first item in ddlist or I get "No items ..." message. I may need a small iteration in OrderPage servlet that will take "names" of hidden forms but I could not figure out how to do it .
I am sending ddlist page and order page , if you have any idea or if you see something wrong , I'd love to hear it..



-------------------------------------------------------------------------------OrderForm------------------------------------------------------------------------------------


 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I see "itemID1" etc in the hidden field names - you are asking for "itemID" which does not appear to exist.

Bill
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

 
ata pazvant
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Even thought I write "itemID1" in the orderform , I can not get "ItemID2".
The problem is How can I iterate "itemID " such that when I choice ,for instance ItemID6 , I get the ItemID6 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic