I am a java beginner. This time, I will update the getRequestDispatcher () method.
-Interface for displaying JSP from Servlet
.getRequestDispatcher("./sample.jsp").forward(request, response);
I think this way of writing is common.
Suddenly, ** forward (request, response) ** is a method that can be used by using the RequestDispatcher interface.
You can jump to the specified JSP by using forward.
I think that it is often used for page transition after exiting the doPost () method or doGet () method. After exiting the method processing, if there is nothing to display in the browser, an error will occur.
Recommended Posts