I want to make a simple form-page which allows manipulation of values i stor in a dB. The db-table essentially consists of 2 rows, a unique identifier and a boolean value. I want to list the complete contents of the db in a single table with the booleans as checkboxes.
What is the best practice for implementing this ? The version I've got 80% done at the moment has an action (displayItems) which is tied to a form (itemsForm). The form in itself consists of a single private List (itemList) variable with the appropriate getter/setter. The list is populated at runtime with a bean for every row in the db. I can present the information to the user using <logic:iterate id="ItemBean" name="itemsForm" property="itemList"> <tr> <td><html:checkbox property="yesNoValue"/></td> </tr> </logic:iterate> The thing I don't understand (as I said i'm only 80% done so I haven't actually tried it yet) is how the action i submit to will be able to tell which yesNoValue a particular submitted value refers to ? When i look at the html the name for the checkbox is the same for all entries. I get the feeling I might have to wrong approach to the problem, maybe my itemsForm should have getters / setters for arrays instead of a single get / set which delivers a List of objects ? Any insights ? //Linus Nikander - [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]