81,092
社区成员
发帖
与我相关
我的任务
分享
<input type="text" id="txtId" name="complId" value="123123123"></input>
<input type='checkbox'
name="" class='cboCenter'
style='margin: 0px;' value="11111"></input>
<input type='checkbox'
name="" class='cboCenter'
style='margin: 0px;' value="22222"></input>
<input type='checkbox'
name="" class='cboCenter'
style='margin: 0px;' value="33333"></input>
<input type='checkbox'
name="" class='cboCenter'
style='margin: 0px;' value="44444"></input>
public class ResponsibilityVo {
private long complId;
private List<ResponsibilityDetailVo> detail;
public long getComplId() {
return complId;
}
public void setComplId(long complId) {
this.complId = complId;
}
public List<ResponsibilityDetailVo> getDetail() {
return detail;
}
public void setDetail(List<ResponsibilityDetailVo> detail) {
this.detail = detail;
}
}
public class ResponsibilityDetailVo {
private List<Long> orderList;
public List<Long> getOrderList() {
return orderList;
}
public void setOrderList(List<Long> orderList) {
this.orderList = orderList;
}
}
@RequestMapping("/aa")
@ResponseBody
public JSONObject aa(HttpServletRequest request, HttpServletResponse response, Model model,
ResponsibilityVo vo) {
JSONObject json = new JSONObject();
return json;
}
<input type="text" id="txtA" name="detail[0].orderList[0]" value="1111"></input>
<input type="text" id="txtB" name="detail[0].orderList[1]" value="222222"></input>
<input type="text" id="txtC" name="detail[1].orderList[0]" value="1111"></input>
<input type="text" id="txtD" name="detail[1].orderList[1]" value="222222"></input>
可是CheckBox我不知道要如何来写这个Name