You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Frank Schaare <lo...@gmx.de> on 2003/11/24 12:14:41 UTC

optionsCollection with another default value

Hallo,

i´ve made a select from an optionsCollection Tag. The values are read 
from a hashmap like
value1 = one
value2 = two
value3 = three

Now i´d like to set a default value for this select, which is NOT PART 
of my HashMap, f.e "please select..." The rendered select should look 
like this:
<option selected>please select...</option>
<option>one</option>
<option>two</option>
<option>three</option>

is there any way to achieve this result in struts ?


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org