ModelAndView
我给你改一下
public ModelAndView showDept(HttpServletRequest req,HttpServletResponse resp,ModelMap model){
//获取表中所有信息
List list=deptInfoDao.findAll();
//返回部门管理首页
model.addAttribute("list", list);
return new ModelAndView("dept/showDept",model);
}
在jsp中
<%
request.getAttribute(“list”);
%>