Hi,

I'm trying to iterate through a Boolean Array using logic:iterate and then
display these as check boxes. This works fine, but when submitting the form
and resending the Boolean Array back to the Action class, only the values
that are true are returned.

In the struts documentation it says:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

But this only implies for a single property.

Is there a workaround or a fix for this?

My jsp code:

<logic:iterate id="flag" name="myForm" property="flags">
<logic:equal name=" flag " value="true">
        <input type="checkbox" id="flags" name="flags" value="on"
checked="checked">
</logic:equal>
<logic:notEqual name=" flag " value="true">
        <input type="checkbox" id="flags" name="flags" value="on">
</logic:notEqual>
</logic:iterate>

Cheers,
Chico.

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

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

Reply via email to