You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anand Narayan <AN...@e-gatematrix.com> on 2002/07/02 16:13:35 UTC

Using Checkboxes

I am trying to use checkboxes in the following manner:
I retrieve a list of records and display them in a table format(one record
per table row)
with a checkbox associated with each record.
The user can click on the checkboxes of any or all records and perform
actions on the selected records.
What I wanted to know was how to name the properties in the form bean so
that I can know which records were
selected.  Since the number of checkboxes on the screen will be
dynamic(based on the size of the list that I get back from a database query)
I cannot create a fixed length array.
Any suggestions?

Thanks
Anand Narayan
Architect, E-Gatematrix

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Using Checkboxes

Posted by fabrice dewasmes <fd...@kaptech.com>.
Hi
you should use the indexed property. But you have to use struts1.1.

Fabrice

> -----Message d'origine-----
> De : Anand Narayan [mailto:ANarayn@e-gatematrix.com]
> Envoyé : mardi 2 juillet 2002 16:14
> À : struts-user@jakarta.apache.org
> Objet : Using Checkboxes
>
>
> I am trying to use checkboxes in the following manner:
> I retrieve a list of records and display them in a table format(one record
> per table row)
> with a checkbox associated with each record.
> The user can click on the checkboxes of any or all records and perform
> actions on the selected records.
> What I wanted to know was how to name the properties in the form bean so
> that I can know which records were
> selected.  Since the number of checkboxes on the screen will be
> dynamic(based on the size of the list that I get back from a
> database query)
> I cannot create a fixed length array.
> Any suggestions?
>
> Thanks
> Anand Narayan
> Architect, E-Gatematrix
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>