多层框架跳转登录问题

 @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
            throws Exception {
        // 获取session
        HttpSession session = request.getSession();
        PermUser user = (PermUser) session.getAttribute(Constant.USER_SESSION_KEY);
        //当用户过期时从cookie获取并装填
        if (user == null) {
            PrintWriter out = response.getWriter();
            out.println("");
            out.println("");
            out.println("");
            return false;
        }
        return true;
    }




######################################################################
  //response.sendRedirect("/back/login.html");
            PrintWriter out = response.getWriter();
            out.println("");
            out.println("
                    
                    

你可能感兴趣的:(错误记录__一步步走来)