IntelliJ Java IDE
The moose likes Struts and the fly likes Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection" Watch "Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection" New topic
Author

Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have a drop-down menu like this:

Once a user makes a selection in the menu and click on the Submit button, the action servlet will know what is selected:

The PageBeans object is a Collection; a Collection of individual JavaBean. In my case, each individual JavaBean is called PageBean (singular).

The PageBean has two properties; one is called 'name', which gets displayed in the drop-down menu. The other is called 'groupID', which is not displayed.

Once a selection is made, the 'name' property of that particular PageBean will be forwarded to a servlet. However, I also want the 'groupID' property of that PageBean to be forwarded. How can it be done?
 
 
subject: Drop-Down Menu Has a Hidden Property to be Forwarded Along With the Selection
 
Threads others viewed
Problem With Using c: Tag to Display Drop-Down Menu
Exception creating bean of class org.dhsinfo. content.AddFileForm: {1}'
html:option
form and html-el:form Problems
Cannot Find Bean in Scope Request
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture