aspose file tools*
The moose likes Struts and the fly likes Populating dropdown menu using hashmaps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Populating dropdown menu using hashmaps" Watch "Populating dropdown menu using hashmaps" New topic
Author

Populating dropdown menu using hashmaps

Bhaskar Dosi
Greenhorn

Joined: Aug 01, 2011
Posts: 1
I want to populate a multilevel drop down. How can we use a hashmap to populate it?? I have 3 menus , the second value depends on first , and the third value depend on second value selected ?
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

This is a very common question, and one that has been answered many times in the HTML forum. Search for "dependent" or "cascading" dropdowns.

The short answer is to use Ajax to fetch the values of each subsequent drop down as values are selected.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Populating dropdown menu using hashmaps
 
Similar Threads
How do I populate dynamic combox items
Please help!! Populate second list depending on first
problem with struts2 drop down
dynamic drop down menus with javascript
Using Values in a List form one JSP to Another