티스토리 뷰

반응형
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if ((null == request.getSession(false)) || (null == request.getSession(false).getAttribute( "user"))) { System.out.println("user logged out..."); RequestDispatcher rd = request.getRequestDispatcher("loginForm.htm"); rd.forward(request, response); return false; } return super.preHandle(request, response, handler); }


반응형