Struts2 前后台传数据
Action中定义一个List 里面放了十个对象。
<s:iterator value = "testList" status="st">
<tr>
<td><s:textfield name = "testList[#st.index].name"></s:textfield></td>
<td><s:textfield name = "testList[#st.index].password"></s:textfield ></td>
</tr>
</s:iterator>