You can do this with the <html:multibox> tag.

- Use the same 'name' attribute for each checkbox.
- Use a different 'value' attribute for each checkbox (probably obtained
from your iterator).
- Define the corresponding bean property as type String[].

When the form is submitted, your property setter will be called with a
String array containing all of the values for the checkboxes which were
checked.

Hope this helps.

--
Martin Cooper


----- Original Message -----
From: "Paul Jackson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 4:00 PM
Subject: Checkboxs in a list


> Does anyone of the best approach for the following situation?
>
> I wish to have a list of files for processing with a checkbox on the left
> hand side of each file to indicate if the file should be processed or not.
> I'm looking at how to do this in a single form with a <logic:iterator> tag
> to list the files.
>
> If I use the <html:checkbox> tag the problem is that the names on the
> checkboxes are all the same and I can't distinguish between them.
>
> Any ideas?
>
>
>
> Paul Jackson
> Meridian Informatics
> Sydney, Australia
>
> Ph 8233 7564
> Fax 8233 7533
>
>


Reply via email to