You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Oliver Kersten <Ke...@atacama.de> on 2002/11/21 17:33:51 UTC

set a html:checkbox checked

Hi,

how can I set a checkbox checked during creation in the JSP. In HTML I would
do it like this:

  <input type="checkbox" name="mycheck" checked>

But I can't find that for the struts tag:

  <html:checkbox property="mycheck">check it</html:ckeckbox>

And can I use the value "true" to set a checkbox checked. I get only a
"true" from my bean and not a "checked" or something else.

ciao Oliver.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>