• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iterate through HashMap containing ArrayLists

 
Chris Rutkowski
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm new to struts and have often been running into issues getting things to display correctly. Here's another instance of this.

I have a HashMap which contains Strings as keys, and ArrayLists as values. For example:

I'm iterating over a separate collection which will give me one of the key values in the previous Map. For each of these elements, I would like to display the correct ArrayList inside a dropdown box. For example, if the outside collection returns "%", I want to display a dropdown box containing "#" and "%". Can anyone help me with this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic