struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mark.l...@boxstuff.com>
Subject Re: <html:select> issue
Date Thu, 01 Jul 2004 12:25:38 GMT
If theList is a List that cast it to an array

theList.toArray()

On 1 Jul 2004, at 14:01, John Antonakos wrote:

> i had something like this:
>
>   <select name="select1">
>        <logic:iterate id="list1" name="coll1" property="theList">
>          <option value="<bean:write name="list1" 
> property="a1"/>,<bean:write name="list1"
> property="a2"/>">
>           <bean:write name="list1" property="a3"/>
>          </option>
>        </logic:iterate>
>   </select>
>
> i changed it and now i have something like this:
>
>       <html:select property="select1">
>           <html:options collection="theList" property="a1" 
> labelProperty="a3"/>
>        </html:select>
>
> As you see i loose one information, the ',a2' information.
> Is there a way to solve this problem ?
> I need to have html:select instead of select, cause in case of an 
> error i need the value to be
> there, and not to get lost. I mean the selected one, to remain 
> selected, and not to auto
> select the first.
>
> Regards, John
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


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


Mime
View raw message