Why not monitor the checkbox(es) with a JavaScript onClick() method and set a hidden variable that would be passed to your ActionForm?
Cheers! Mark -- Try before you cry: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -----Original Message----- From: Nick Thomson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:33 AM To: Struts Users Mailing List Subject: Re: Confused over check boxes Try thinking of it this way. For every JSP page 2 actions take place. The first action is used to populate the form bean and then control is passed to the JSP page. During this phase you can ignore reset and set your properties as you need them. The 2nd action is used to process the user's responses. This is where the reset() method is important to you. Per the HTML spec., unchecked boxes are not placed in the parameter list. Therefore, if the reset method did not uncheck your checkbox for you, then you would not have any way of determining if a user had uncheck any boxes. Hope this helps. ----- Original Message ----- From: "Ian Beaumont" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 10:41 AM Subject: Confused over check boxes > I've got a checkbox on a page. It's initial state needs to be checked. In > my form I have a boolean value for the check box. > It fails to detect correctly if the check box is set. In my reset method I > set the check box to true (as this is the initial state), but the help says > "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." > How am I supposed to deal with this situation? > Thanks > Ian Beaumont > -- 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]>