action文件中
- Java code
List<Map<String, Object>> jyjlList = this.userinfoService.getPersonJlList(userids,"jyjl"); super.getRequest().setAttribute("jyjlList", jyjlList);
daoImpl文件sql如下:
- Java code
String sql ="select t.edu_id,t.edu_school,t.edu_zy,t.edu_xw,t.edu_xw,t.edu_ksnf,t.edu_jsnf,t.edu_gs from p_person_edu t where t.edu_personid=?";return super.jdbcTemplate.queryForList(sql, personid);
在 jsp里如何获得jyjlList,并取出相应的值,如取edu_school
------解决方案--------------------
${jyjlList.edu_school}
------解决方案--------------------
同意楼上,