struts2中js如何设置list的值(list内为对象)
后台:privateList<ExaminContentBean>list;publicList<ExaminContentBean>getList(){returnli...
后台:
private List<ExaminContentBean> list;
public List<ExaminContentBean> getList() { return list; }
public void setList(List<ExaminContentBean> list) { this.list = list; }
前台:
<c:forEach begin="${0}" end="${9}" varStatus="loop"> <tr> <td class="tdwidth right" >评分标准:</td><td><input type="text" name="list[${loop}-1].ecaluteStandards" size="70%"/></td> <td class="tdwidth right">计算公式:</td><td><input type="text" name="list[${loop}-1].formula" size="30%"/></td> </tr> </c:forEach>
表单提交后,list为null 展开
private List<ExaminContentBean> list;
public List<ExaminContentBean> getList() { return list; }
public void setList(List<ExaminContentBean> list) { this.list = list; }
前台:
<c:forEach begin="${0}" end="${9}" varStatus="loop"> <tr> <td class="tdwidth right" >评分标准:</td><td><input type="text" name="list[${loop}-1].ecaluteStandards" size="70%"/></td> <td class="tdwidth right">计算公式:</td><td><input type="text" name="list[${loop}-1].formula" size="30%"/></td> </tr> </c:forEach>
表单提交后,list为null 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询