问题描述: 1. 后台返回到JSP前台的的list,在jsp页面使用EL表达式遍历时出现如下问题:javax.el.PropertyNotFoundException: Property 'ID' not found on type java.lang.String 2. ID在是int类型.需要在jsp页面把ID转为String类型. 3. 转换的方法为:${item[fn:trim(u.id)]} 需要在页面引入: <%@ taglib uri="http://java.sun.com
mvc可以使用ModelAndViev传递数据选择跳转的视图 controller中的代码, 把一个模拟的表单studentListSimulate传给ModelAndView @RequestMapping("/detial") public Model showStudentDetial(Model mod) { ModelAndView mav = new ModelAndView(); mav.addObject("studentListSimulate",