
On this "JSP Redirect Example" Tutorial / Article describes about How To Redirect a JSP page using response.sendRedirect() function
How To Use JSP SendRedirect?
For redirect a page in JSP, we are calling response.sendRedirect(), through which the server sends the response to the client, from where next request comes and it displays that url.
Here we are using response implicit object to redirect the browser to a different resource
When a sendRedirtect method is invoked, web container will return to the browser indicating that a new URL is requested. Here the browser issues a completly new request so any thing that are stored as request attributes before the redirect occurs will be lost
If we called sendRedirect() from JSP #1 to JSP #2 the browser's location bar is changed to show JSP #2, since a sendRedirect() is a new request,