Tomcat Redirect Guide: Simple Implementation
In Tomcat, you can use the response.sendRedirect() method to implement page redirection. This method will redirect the request to another page.
The example code is shown below:
response.sendRedirect("http://www.example.com/newPage.jsp");
Here, http://www.example.com/newPage.jsp is the address of the page you want to redirect to. When the page loads, the user will be automatically redirected to the new page.