struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas De Loof" <nicolas.del...@cgey.com>
Subject Re: Html:options
Date Wed, 12 Mar 2003 14:46:19 GMT
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: r.romano@set-network.com
> Tel.:   010 2712603
> _____________________________________
>
>
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Mime
View raw message