/** * 初始化登录页面时调用的方法 * * @author 方涛 * @editor 秦建华(去掉角色内容) * @version 1.1 2008.7.2 * @throws Exception */ public ModelAndView index(HttpServletRequest request, HttpServletResponse response, Object obj) throws Exception { List curRptTimelst = indexService.getCurrentReportTimes(); List hisRptTimelst = indexService.getHistoryReportTimes(); HashMap map = new HashMap(); map.put("curRptTimelst", curRptTimelst); map.put("hisRptTimelst", hisRptTimelst); return new ModelAndView(this.getIndex(), map); }
/** * 注销登录时调用的方法 * * @author 秦建华 * @version 1.0 2008.7.10 * @throws Exception */ public ModelAndView logout(HttpServletRequest request, HttpServletResponse response, Object obj) throws Exception { HttpSession session = request.getSession(); // session.removeAttribute("IAppTree"); session.removeAttribute("UserBean"); session.removeAttribute("reportTime"); session.invalidate(); List curRptTimelst = indexService.getCurrentReportTimes(); List hisRptTimelst = indexService.getHistoryReportTimes(); HashMap map = new HashMap(); map.put("curRptTimelst", curRptTimelst); map.put("hisRptTimelst", hisRptTimelst); return new ModelAndView(this.getIndex(), map); }