Ellingson, David wrote:

It seems like this question would have been asked before, but I couldn't
find an answer in the archives. I am able to successfully use the
html:checkbox tag. However, this tag seems to be trickier to use when you
want to default the box to "checked". Simply setting the form attribute to
true won't work, since an unchecked value will not be submitted and the form
attribute will remain true.

You are having trouble because you need to use the reset() method to set all your checkboxes to false. Then, after your form submits only the ones checked will be set to true and everything will be fine (remember Struts always calls the reset method first then it populates your ActionForm with the submitted params). You do not need to do all those javascript hacks.


--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to