String race[] = {"G"} form.set("race", race);
<select name="race" multiple="multiple" size="5" id="race"><option value=""></option>
<option value="A">American Indian or Alaskan </option>
<option value="B1">Asian </option>
<option value="C">Black or African American </option>
<option value="G">Do not wish to provide race </option>
<option value="B2">Native Hawaiian or Other Pacific Islander</option>
<option value="E">White </option></select>
Thanks Anand
From: "James Mitchell" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: <html:select> and <html:options> pre selecting values Date: Fri, 24 Sep 2004 15:04:05 -0400
Run your page, and view source, and send that result so we can see it.
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Anand M S" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 24, 2004 2:53 PM Subject: <html:select> and <html:options> pre selecting values
> hi all
>
> I have drop downbox with multiple=true, but i'm not able to pre select the
> values (default values), do you guys have any idea? The datatype in form
is
> String[], in i'm initializing the property in action class with string[]
to
> pre select the default values.
>
> Thanks,
> Anand
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]