Hi Jenn,
There are a couple of ways of achieving this:
%>
<jsp:forward page="login.jsp" />
<%
works very well - and is the most reliable. However, you cannot add parameters to the
string contained in the page="login.jsp" call - which probably isn't a problem for a login application.
I believe the above call is a server redirect, which means the server handles the redirection and is therefore a bit faster.
The other method is:
response.sendRedirect("./login.jsp");
which tells the browser to redirect to the login page. However, it does sometimes result in an illegal state exception on
Tomcat (not sure why). The good thing with this approach is that you can add query string parameters in the redirection (if required obviously).
I hope that helps.
Steve