File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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, 3rd edition
subject: populating list boxes
It's not a secret anymore!