Tried it.
Problem with that is you now get 2 options that are the same.
ie:
GA
AK
AL
....
GA

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 11:28 AM
Subject: RE: How do I set the default selection when I'm using html:options?


>
> You can add in an <html:option> tag above the <html:options> tag that
> will be the default.
>
>
>
> -----Original Message-----
> From: mleejr [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 11:21 AM
> To: struts-user
> Subject: 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
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

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

Reply via email to