In this section, you will learn how to redirect a page in JSP. You can see in the given example that we have used the method response.sendRedirect() through which the server sends the response to the client browser, from where the next request comes and it displays that url correctly. You can also redirect the jsp page in a jsp.
Here is the code of redirect.jsp
String redirectURL = "http://www.roseindia.net/";
Output will be displayed as:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: February 3, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles