Javascript iterate through java.util.List
I have an issue with the List-collection.
Situation:
I have 2 dropdownlists, whom are connected to each other. When you select an option in DDL1, the values in DDL2 have to change.
Lets say that we have several football leagues, each with it's own teams. DDL1 contains the football leagues (lame example, I apologize :)). When you select a league, DDL2 must contain all the teams who play in that particular league.
In my servlet, I retrieve the 2 Lists as java.util.List. Is there an elegant way to pass those lists to the JSP-page, in a way so I can perform the actions described above? What I want to do is when a user selects a league, I iterate with javascript through the second list and populate DDL2 with the appropriate teams.
I want to do this without Ajax, if it's possible.
I know that this topic is more javascript-related, but I didn't know where to put it. Moderators can move it, if they want.

