Ok, making headway but have issue: Since it is a single checkbox, I am using a Boolean, so here is my bean:
<form-bean name="covers" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="covers" type="java.lang.Boolean"> <form-property name="catalogID" type="java.lang.String"> </form-bean> Now when the user submits the form, there will be a catalogID set. So I am trying to pull out the catalogID like this in my Action class: public ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, AppObject appObject, UserObject user) throws Exception { DynaValidatorForm theForm = (DynaValidatorForm)form; String catalogID = theForm.getCatalogID(); Boolean checkbox = theForm.getCovers(); But it will not compile. How do I get the values from the form? I usually create my own physical bean. Thanks, Scott -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 10:13 AM To: Struts Users Mailing List Subject: Re: DynaValidatorForm and Checkbox From: "Scott Purcell" <[EMAIL PROTECTED]> > I have a couple of jsp pages where there is a single checkbox on the page. > But as a newbie, I am not sure what type in the creation to make it? A String? A Boolean? I usually use Boolean for checkboxes. (Read the docs about using the 'reset' method to make 'un-checking' the box possible.) If it's a yes/no question, I sometimes use a pair of radio buttons for "Y" or "N". -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]