Adam Gordon wrote:
I've got an html:checkbox in a form and the property is mapped/spelled
correctly to the field/method in the bean. The behavior I am seeing is
that the bean property (a boolean) is not being set based on the state
of the checkbox.
I fired up Ethereal and following the TCP stream from the POST, I can
see the name of the property being passed (<property name>=on) as a
parameter on the request if the checkbox is checked, but if it is not
checked, the parameter doesn't show up at all on the request (I'd
expected <property name>=off) but this might be the reason that Struts
can't set the property if it doesn't know the value....
Obviously, I can issue a request.getParameter(<property name>) and if it
returns null, set the property on the bean myself, but I had hoped
Struts would do this for me...
Anyone run into this before or have any suggestions? Thanks.
Try using multibox. I think it will do what you need.
http://husted.com/struts/tips/007.html
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]