This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes How to load data in a combo based on user selection on another combo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to load data in a combo based on user selection on another combo" Watch "How to load data in a combo based on user selection on another combo" New topic
Author

How to load data in a combo based on user selection on another combo

Santhosh kumar Ravindran
Greenhorn

Joined: Nov 14, 2009
Posts: 13
Hi ranchers,

i want to know the way for loading values in a combo based on a selection from another combo in same jsp.

Thanks in advance !
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

i want to know the way for loading values in a combo based on a selection from another jsp.

You want to change the combo box on one page based on what combo box is selected on a different JSP page??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Santhosh kumar Ravindran
Greenhorn

Joined: Nov 14, 2009
Posts: 13
Ankit Garg wrote:
i want to know the way for loading values in a combo based on a selection from another jsp.

You want to change the combo box on one page based on what combo box is selected on a different JSP page??


Yeah exactly,
Thanks Mr. Garg.
But Mr. Garg, i posted my question wrong. Sorry for that.
Actually i want to load the second combo based on first combo selection in a single jsp !
so that i can dynamically load based on user selection.

May i know the way for it.

Regards,
santhosh (rancher)
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

There is a tag called doubleselect that can help you. Look at examples on the internet on how to use it...
 
Don't get me started about those stupid light bulbs.
 
subject: How to load data in a combo based on user selection on another combo
 
Similar Threads
Combo Box
Dynamic reaction caused by different selection
Unable to set Default value after onchange of Combo in JSF
jsp dynamic combo box
displaying values in same jsp after user selects value in combo box