[Java]forward()とsendRedirect()の書き方

1.フォワード
RequestDispatcher dt = request.getRequestDispatcher(“/WEB-INF/common/test.jsp");
dt.forward(request, response);

2.リダイレクト
request.sendRedirect(“http://xxxx")
request.sendRedirect(“/SampleServlet")

Software

Posted by arkgame