This is a tag based on the use of javascript with hidden fields which makes the checkbox function like a html:text field.
Edgar -----Original Message----- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:44 PM To: 'Struts Users Mailing List' Subject: how do i set a checkbox as checked w/o referring to a bean? I want to have a checkbox use the HTML checked attribute. I want to do this without referring to a bean or a property or a value, separate from the Struts architecture (except that I still want to have Struts fill in my form values). Is it possible? I have tried many things. In the form object, I set the field's default value to "true", but this meant that the field was always checked - if the form was submitted with the box unchecked and there was an error, the box would be checked again when the user returned to the form. I cannot figure out how to have a box selected the 1st time the page loads and then use the user's setting after that (without getting tangled up in the form object). Any help? thx andy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
CheckboxTag.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

