java获取model的值,springmvcmodel存值页⾯取值有关问题
springmvc model存值页⾯取值问题
cafe是什么意思本帖最后由 u014490157 于 2014-06-12 11:04:25 编辑
事情是这样的:后台从数据库取出来⼀个集合存到model,在页⾯⽤jstl取不出来,详细代码如下
后台代码
aluminiumpublic String getMeetingList(Model model){
题破山寺后禅院翻译
List meetingList;
有朋自远方来英语try {
String path = getClassPath("Meeting");一对一辅导机构排名
meetingList = meetingDao.query(Class.forName(path));
model.addAttribute("meetingList",meetingList);
System.out.(0).toString());//控制台结果是del.Meeting@d5b453
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
opp
e.printStackTrace();
}
riyo mori
return "redirect:/page/home.jsp";
vrp}
页⾯代码
${mt.mtName}${mt.mtState}${mt.mtStartData}${mt.mtEndData}${mt.mtPlace}${mt.mtPostil}${mt.mtScheDule}${mt.mtBackGround}${mt.mtLogistics}实体类
private long mtId;
private String mtName;
private String mtState;
private Date mtStartData;
private Date mtEndData;
private String mtPlace;
private String mtPostil;
韦博英语待遇怎么样private String mtScheDule;
private String mtBackGround;
private String mtLogistics;
private List MtUrList;
页⾯输出发现是空的,请问这个是怎么回事
------解决⽅案--------------------
新东方在线课程
redirect啦,当然请求不到了!