I believe the value attribute in the case of the textbox is the 'text'
returned by a 'checked' checkbox, not the boolean value of the checkbox.

Edgar

-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 11:34 AM
To: 'Struts Users Mailing List'
Subject: RE: set a html:checkbox checked


In your Action class which forwards to the JSP, you have to have code
which sets the property associated with the checkbox to either "true",
"yes", "on", or the value set in the "value" attribute.

> -----Original Message-----
> From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]]
> 
> Hi, Oliver
> 
> did you get any response. i'm looking for the same.
> could you send me your solution please?
> 
> thx
> 
> Georg M.
> 
> -----Original Message-----
> From: Oliver Kersten [mailto:[EMAIL PROTECTED]]
> 
> 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.

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


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

Reply via email to