This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Tomcat and the fly likes login page redirect Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "login page redirect" Watch "login page redirect" New topic
Author

login page redirect

Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
i use tomcat 4.0.2 and have form based authentication.
it all working fine.
i can restrict access to certain folder, by redirecting them to the login page.
the problem is, if someone accidently go to the login page directly, ie: http://localhost:8080/login/login.jsp, and enter the correct username and password, then errorpage "Apache Tomcat/4.0.2 - HTTP Status 400 - Invalid direct reference to form login page" will appear, instead of redirecting the user to the main page.
so, what should i do, in order to redirect successful login user to the main page, if they access the login page directly?...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: login page redirect
 
Similar Threads
Dobut in Realm Authentication
Tomcat Security
how to redirect to success page in tomcat using its lapd configuration
set original page for j_security_check
login-config in web.xml & redirection