You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Lee <ml...@hotmail.com> on 2002/09/18 17:20:57 UTC
How do I set the default selection when I'm using html:options?
1) How do I set a default value in an html:select on an options list? I
need the default state to be the one loaded from the struts form.
It doesn't like this.
<html:select property="state" size="1" value="<%= state in ActionForm %>">
<html:options name="allUnitedStates" labelName="allUnitedStates"/>
</html:select>
thanks everyone,
Mike