jsp:
<s:radio name="view[%{#status.index}]" list='#{"同意":"同意","不同意":"不同意"}' theme="simple" />
action:
private List<Apply> list;
private JdbcApplyDao dao = new JdbcApplyDao();
private List<String> view = new ArrayList<String>();
public String execute() throws Exception {
list = (List<Apply>) session.get("list");
for (int i = 0; i < view.size(); i++) {
dao.updateView(view.get(i), list.get(i).getId());
}
httpRequest.setAttribute("tipmsg", "审批完成");
return "success";
}