if you use <html:select> with <html:option> or <html:options>, the
option that equals the formbean property value will be automaticaly
selected.

(formbean initialized with name="foo")

<html:select property="name">
    <html:option value="foo">foo</html:option>
    <html:option value="bar">bar</html:option>
    <html:option value="nop">nop</html:option>
</html:select>

will render
<option value="foo" selected>

Nico.


> Is there a way of obtaining a <select> element where one of the
<option>
> sub-elements has the SELECTED attribute ?
> Thanks
>
> ____________________________________
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
>
> e-mail: [EMAIL PROTECTED]
> Tel.:   010 2712603
> _____________________________________
>
>
>
>
> --------------------------------------------------------------------
-
> 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