Be seen. Boost your question’s priority for more expert views and faster solutions
orward() method sendRedirect() method
The forward() method works at server side. The sendRedirect() method works at client side.
It sends the same request and response objects to another servlet. It always sends a new request.
It can work within the server only. It can be used within and outside the server.
r("servlet 2").forwar d(request, response); Example: response.sendRedirect("ser vlet2");
Join the community of 500,000 technology professionals and ask your questions.