Jeremy,

HTML checkBoxes dont send a value when unchecked -- which is probably causing the 
problem.You should override the reset() method of ActionForm in your class.

In this method, set all your boolean variables in the form to false. The 
reset(ActionMapping am, HttpServletRequest req) method will be automatically called 
before populating the ActionForm. 

Hope this helps.
Thanks

----- Original Message ----- 
From: "Jeremy Haile" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 12:34 PM
Subject: Indexed checkboxes always checked!!!! Please help!


> I have an arraylist of beans which I iterate through. 
> Each bean contains 3 boolean values (i.e. checkboxes
> on my form).  The form is initially populated through
> a database.  
> 
> What I would like to do is to update the database
> using the form, but when a checkbox is unchecked on my
> html form, it is not changed in the ActionForm.  I
> have searched the mailing archives, but cannot seem to
> find an answer.  How do I know when a user unchecks a
> box that is initially checked?  
> 
> I cannot initially set the checkboxes to false,
> because many of them are initially set to true by way
> of the database!
> 
> Please help me!!
> 
> Jeremy
> 
> __________________________________________________
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
> 
> --
> 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