|
Java™ by example!
|
|
|
How do I redirect the browser to a URL from within my servlet?
Here are two way to do this: RedirectServlet1.java:
Another way has been suggested on a Java forum if the above doesn't work:
Alternatively, you can use the HTTP headers to redirect the client's browser after executing your sevlet: RedirectServlet2.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|