当前位置: 代码迷 >> Java Web开发 >> 怎么在jsp里取action 里的super.getRequest().setAttribute("jyjlList" jyjlList)
  详细解决方案

怎么在jsp里取action 里的super.getRequest().setAttribute("jyjlList" jyjlList)

热度:536   发布时间:2016-04-17 10:59:22.0
如何在jsp里取action 里的super.getRequest().setAttribute("jyjlList", jyjlList);
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}
------解决方案--------------------
同意楼上,
  相关解决方案