Check the archives -- this question has been answered many many times
before on this list.
Short answer: use the reset() method of your form.

hth,
tomK


> -----Original Message-----
> From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] 
> Sent: dinsdag 15 januari 2002 13:21
> To: Struts Users Mailing List
> Subject: checkbox
> 
> 
> 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:struts-user-> [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