How to make a drop down point to a different HashMap?

Hi,

I have this requirement to have two drop down boxes in the JSP page and based on the value selected in the first dropdown box the other dropdown should display values corresponding to that in the first drop down box?

Now it would have been simple if I would just go for fetching the values from the database corresponding to the selected value in my first DropDown box.

But just to avoid hitting database everytime, all the different sets of values have been put already in different HasMaps...

Now my problem is how to make the 2nd dropdownvalue-bounded to any of these HashMaps based on whatever I select in 1st DropDown

[666 byte] By [avnera] at [2007-11-27 2:34:59]
# 1
HtmlSelectOneMenu#setValue() ought to be enough.
BalusCa at 2007-7-12 2:52:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...