1: …… 2: public void redirect(ServletRequest r, HttpServletResponse response) 3: throws IOException { 4: String usr = r.getParameter("username"); 5: String pass = r.getParameter("password"); 6: 7: // HTTP 리다이렉트는 웹브라우저는 통해 HTTP GET request를 발생시킨다. 8: response.sendRedirect("j_security_check?j_username=" + usr + "&j_password=" + pass); 9: }