It's not a secret anymore!
The moose likes Struts and the fly likes Dependent Drop-down Combo boxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dependent Drop-down Combo boxes" Watch "Dependent Drop-down Combo boxes" New topic

Dependent Drop-down Combo boxes

Sherryl Philip

Joined: Jul 02, 2004
Posts: 20
In many situations, you will have two combo boxes, with the contents of the second dependent on the value selected in the first. That is, each item in the first combo box is associated with a list. To handle this, you need for the first combo box to do a submit when it changes, so that you have a chance to update the second.
For example, when i choose a particular country in a combo box the corresponding states should appear in the second combo box. Please help me out!
Can u just solve this problem using struts plz?
Brahim Bakayoko
Ranch Hand

Joined: Aug 29, 2003
Posts: 155

SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="" target="_blank" rel="nofollow"></a> down for a while...
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

This is probably the 2nd-most frequently asked question in these forums (right behind 'how do I page database results?'). Do a search and you will find the previous discussions.

Meanwhile, I'm moving this to the Struts forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Dependent Drop-down Combo boxes
It's not a secret anymore!