Struts: List in a List
Hi All,
I have a requirement where I have a List consisting of Lists. This inner lists will have beans. I need to display amounts from the beans.
I could successfully display the amounts by using two "logic:iterate"'s
In the code below amountsForm is my ActionForm, amountsList is the parent list containing List's of beans (amount is my bean)
<logic:iterate id="list" name="amountsForm" property="amountsList">
<tr>
<logic:iterate id="amount" name="list">
<td class="field_label" width="149"><bean:write name="amount" property="desc" /></td>
<td><html:text indexed="true" name="amount" property="amount" style="WIDTH: 80px; text-align: right;" /></td>
</logic:iterate>
</tr>
</logic:iterate>
But user can edit the amounts and I have to update the same in the database. Now how can I get the values back into the form populated?
Your help is greatly appreciated.
Thanks.

