This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes populating list boxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "populating list boxes " Watch "populating list boxes " New topic

populating list boxes

C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Hi Guys,
How do I populate list boxes based on the response of the previous one.
For Example, if I have a combo box with countries, the response of a user click should result in another combobox populating states of that country.

could you please list the technologies used. Where I can I write the logic. Can it be done at the clients end using Javascript? What is the best way?

Thanks in Advance
Abhilash George

Joined: Apr 28, 2006
Posts: 13
yes it can be done ,
you need to ensure that for the onchange of the list call an action
by calling the javascript function.


jQuery in Action, 2nd edition
subject: populating list boxes