permaculture playing cards*
The moose likes JSP and the fly likes Drop Down Menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Drop Down Menu" Watch "Drop Down Menu" New topic
Author

Drop Down Menu

Barun Saha
Greenhorn

Joined: Nov 10, 2003
Posts: 24
I have a drop down list which is populated from a table (Ex Customer Code)
I would like to display the customer name next to the selected Code.
Customer Code Customer Name
Pull Down Menu Should display selected Name for Customer.
Thanks,
Barun
[ February 03, 2004: Message edited by: zimby zany ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

"zimby", you have been asked before to change your display name to conform to Ranch standards (in this very forum). This is not optional. Please change your display name prior to your next post. Further defiance of the policy may result in the deletion of your account.
thanks,
bear
JSP Forum Bartender
[ February 03, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Barun Saha
Greenhorn

Joined: Nov 10, 2003
Posts: 24
Profile update done. Now can someone please help me.
Thanks,
Barun
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Thanks for changing your displayed name. We really do appreciate it.
I guess what you are asking for is how to use the SELECT and OPTION tags in HTML to display one thing, but send another:
To do this you need to generate something like the following from your JSP

The "value" of the selected option will be sent to the server, and the text between the <option> tags will be shown to the user.
Has that helped?
[ February 05, 2004: Message edited by: Frank Carver ]

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drop Down Menu