code_junkie

How can I configure Tomcat to always direct to index.jsp after login?

Nov 11th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. <%
  2. if (request.getParameter("login") == null) {
  3. response.sendRedirect(request.getContextPath() + "/index.jsp?login");
  4. return;
  5. }
  6. %>
Add Comment
Please, Sign In to add comment