요청(request)를 forward해주는 역할을 함
public class Controller extends HttpServlet {
public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
RequestDispatcher dispatcher = request.getRequestDispatcher("/hello");
dispatcher.forward(request, response);
}
}
'Web > JSP&Servlet' 카테고리의 다른 글
필터(Filter) (0) | 2020.08.30 |
---|---|
서블릿(Servlet) (0) | 2020.08.28 |
커스텀 태그(Custom Tag) (0) | 2020.08.28 |
MVC model 2 (0) | 2020.08.16 |
JSP 레이아웃 INCLUDE하기 (0) | 2020.08.13 |