http://jakarta.apache.org/struts/struts-html.html#checkbox

"WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement
setting the corresponding boolean property to false in the reset()
method."


"Serge A. Redchuk" wrote:
> 
> Hello struts-user,
> 
>   I'm newbie in Struts and encountered a problem when tried to get
>   boolean value of checkbox state from my form bean.
> 
>   I always have 'true', even if I unchecked my checkbox on form.
> 
>    In JSP I wrote:
>    Published: <html:checkbox property="published" />
> 
>    In Action that must handle the form data:
>    ...
>    ef.getPublished() - ever true !
>    ...
> 
> What have I done in wrong way ?
> 
> --
> Best regards,
>  Serge                          mailto:[EMAIL PROTECTED]
> 
> --
> 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