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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Reply via email to