springMVC form SpringMVC form标签引入及使用方法
shouyaya 人气:01.需在jsp页面引入头文件:
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
2.在jsp页面的使用方法:
3.对应controller的使用:
@RequestMapping(value = "/to_check",params = "id") public String toCheck(int id, Map<String, Object> map){ map.put("claimVoucher",claimVoucherBiz.get(id)); map.put("items",claimVoucherBiz.getItems(id)); map.put("records",claimVoucherBiz.getRecords(id)); DealRecord dealRecord =new DealRecord(); dealRecord.setClaimVoucherId(id); map.put("record",dealRecord); //通过map返回modelAttribute对应的实体对象 return "claim_voucher_check"; }
加载全部内容