Struts logic:iterate input field
Posted
by
camilos
on Stack Overflow
See other posts from Stack Overflow
or by camilos
Published on 2012-04-20T12:56:02Z
Indexed on
2012/10/07
15:37 UTC
Read the original article
Hit count: 197
I currently have the following code and the data is displayed fine.
<logic:iterate name="myList" id="product" indexId="iteration" type="com.mycompany.MyBean">
<tr>
<td> <bean:write name="product" property="weight"/> </td>
<td> <bean:write name="product" property="sku"/> </td>
<td> <bean:write name="product" property="quantity"/> </td>
</tr>
</logic:iterate>
But now I need to make the "quantity" part modifiable. The user should be able to update that field, press submit and when its sent to the server, "myList" should automatically update with the new quantities.
I've tried searching for help on this but all I keep finding is examples on how to display data only, not modify it. Any help would be appreciated.
© Stack Overflow or respective owner