The checkbox is not returned as a parameter.  You are using session based
actionforms which only update fields for which parameters are returned.
Either use request based parameters or use the 'reset' method to clear your
checkbox fields.

Edgar

> -----Original Message-----
> From: Chitta Ranjan Mishra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 05, 2004 5:34 AM
> To: [EMAIL PROTECTED]
> Subject: Struts help
> 
> 
> Dear Sir,
>    Presently I am working on Struts project...
>    I am struggling with one problem since last 2 days
> regding html:checkbox in Struts.
> 
> My problem is while inserting data into the database
> thru a checkbox field... either check or uncheck the
> checkbox proper value is inserted into the table.
> Now in case of Updating the same field, suppose then
> check box was UNCHECKED earlier and if I CHECK it and
> try to update it ...it's also working fine.
> But the problem occurs :  when the check box was
> CHECKED earlier and I try UNCHECK it update it ...it's
> not working. After submitting the request , the value
> it's taking as the checked value(i.e. in my case if
> the checkbox is checked then 'Y' should be inserted
> and if the checkbox is unchecked then 'N' should be
> inserted) i.e 'Y'.
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.663 / Virus Database: 426 - Release Date: 4/20/2004
 

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

Reply via email to