Set the value to true in the ActionForm reset() method.

Another thing is that you shouldn't call .jsp pages directly. They
should always be called through an Action first. From the exmaple,
the subscription page is called through (I think) editSubscription.do
to populate the form, and then forward to the .jsp page.

At the top of the .jsp page you can then put something like
(and this is from memory, so I'm not sure of the exact 
syntax)

<logic:notExists name="editSubscriptionForm">
        <logic:forward forward="editSubscription"/>
</logic:notExists>


JeanX wrote:
> 
> Jim Richards wrote at 2001-05-15 14:48:00,
> >JeanX wrote:
> >> If I uncheck a checkbox, there is no corresponding parameter pair in request.
> >> So I can not get the right status of certain form.
> >> How to resolve it ?
> >
> >In you ActionForm reset method you need to set all the checkbox values
> >to false, as reset() is called before the form is populated.
> >
> >That way, the only values that get sent are the ones that need to be
> >set to true, and the ActionForm is correctly set.
> 
> So if I wanna some checkbox default true,
> How can I do?

Reply via email to