File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes passing hidden forms problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "passing hidden forms problem" Watch "passing hidden forms problem" New topic
Author

passing hidden forms problem

ata pazvant
Greenhorn

Joined: Mar 03, 2008
Posts: 5
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------------------------------------------------------------------------------------


William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5


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

Bill

Java Resources at www.wbrogden.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ata pazvant
Greenhorn

Joined: Mar 03, 2008
Posts: 5
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing hidden forms problem
 
Similar Threads
Sorry For Throwing Lengthy Codes At This Site, But I Really Need Help
How To Convert a Servlet File to a JSP File
session tracking remove item (urgent)
Storing of Data
I know what to do but don't know how to implement it..