Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.
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");
Add your voice to the tech community where 5M+ people just like you are talking about what matters.