The problem is that the pge will have multiple lines and each line will have a different location pulldown. I wanted to avoid having multiple copies of the lists which is why I wanted to put them into a single HashMap.
Its because the list is dynamic from a database lookup. This creates then populates an Array of possible options, then the ID values for each of these are used as the key for the dynamic HashMap. This HashMap then contains:
[ 1 ] [ Array of LabelValueBeans ] [ 2 ] [ Array of LabelValueBeans ] [ 3 ] [ Array of LabelValueBeans ] ... etc..
When item with id 1 is selected I want the secondary pull-down to display the ArrayList of LabelValueBeans.
Hope that makes sense..
posted 14 years ago
I think I found the solution to my problem. I've posted it just incase anyone else is facing similar problems doing dynamic matching in JSTL: