Does anyone know how the display order of the option tags generated by 
the <input:select> taglib is determined? The order seems to change from 
the order in which the values are entered in the hashMap parameter.

For example, this jsp code:

<jsp:scriptlet>
java.util.HashMap sort_value_options = new java.util.HashMap(5);
sort_value_options.put("country", "COUNTRY");
sort_value_options.put("state", "STATE");
sort_value_options.put("county", "COUNTY");
sort_value_options.put("municipality", "CITY");
sort_value_options.put("borough", "BOROUGH");
</jsp:scriptlet>

<input:select name="sort_value" default="1" options="%= 
sort_value_options %" />


Is yielding the following output in the rendered HTML page:

<select name="sort_value" >
<option value="STATE" selected="selected">state</option>
<option value="CITY">municipality</option>
<option value="COUNTY">county</option>
<option value="COUNTRY">country</option>
<option value="BOROUGH">borough</option>
</select>                               

Thanks,

August




////////////////////////////////////////////////////////////
August Gresens
Director of Web Development
Black Hammer Productions, NYC
[EMAIL PROTECTED]
////////////////////////////////////////////////////////////


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to