Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Combo box options based on another combo box  option selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Combo box options based on another combo box  option selected" Watch "Combo box options based on another combo box  option selected" New topic
Author

Combo box options based on another combo box option selected

bobby chaurasia
Ranch Hand

Joined: Mar 30, 2002
Posts: 84
Hi,
I have a situation where the user has to select the category of the report from a dynamically generated options in a combo box. Based on the option selected, the options for the second combo box are to be generated.
I have been able to dynamically generarate the options for the first combo box. I however need to capture the option selected here and pass it to the dao in the second combo box to dynamically generate the options. This is where I am not able to progress further.
Any suggestions?
The code is as follows :

[ September 26, 2003: Message edited by: Junilu Lacar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Combo box options based on another combo box option selected
 
Similar Threads
How to solve this
Param passing in link, prepopulation and javascript
Dependent drop down list using Struts 1.2 with Ajax DWR
How to display the full value in select tag
populating a combo box