I'm familiar with struts 1.1 and 1.2 but not 1.3. To my knowlege struts 1 doesn't have a tag that will generate options for a select input from a Map (I'm assuming thats what you're trying to do). There are tags that will generate list of option from collections (and I'm pretty sure Map doesn't implement collection), so you could try making a getter method in your form that retieves the appropriate collection from the Map.
Struts 1 is perfectly capable of generating a list of options from a Map. Just use the htmlptionsCollection tag. When using a Map use the properties "key" and "value" to represent they key and value of the map. Example:
Interesting, so does this mean that when struts documentation refers to a tag needing a collection its refering to any thing in the Java Collection Framework, rather than anything thing that just implements java.util.Collection?
Joined: Feb 15, 2005
Map is a special case. When Struts iterates over a Map, it first calls the entrySet method. Even though Map itself does not implement Collection, the entrySet method of Map returns a Set of Map.Entry objects, and Set does implement Collection.