【发布时间】:2017-04-24 23:30:07
【问题描述】:
我正在使用 Jquery 在 JSP 表中动态添加表中的行,并希望在 Struts2 操作列表中发送该表数据(例如)
下面是动态添加行的代码,如下链接:
how-to-add-remove-table-rows-dynamically-using-jquery
我想将此表数据发送到员工对象列表中的 Struts 2 Action 让我们说:
public class MyAction extends BaseAction {
private List<Emp> emplList ;
// Getters + Setters of emplList
我尝试使用s:iterator,但它不起作用,emplList.size 在Action 中为 0(零)
有人可以建议我或提供一些示例代码
【问题讨论】: