This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Dobut in Realm Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Dobut in Realm Authentication" Watch "Dobut in Realm Authentication" New topic
Author

Dobut in Realm Authentication

Kalaiselvan Selvamani
Ranch Hand

Joined: Sep 10, 2001
Posts: 32
Hi All,
Now i'm using Tomcat4.0.1 . where i use JDBCRealm for User Authentication.. Which is FORM based..
I have a doubt regarding how to give the successor jsp following the login.jsp. I havent index.jsp in my project instead i have main.jsp.
Now i manage these probelm like
I gave my main.jsp in my welcome-list.
<welcome-file-list>
<welcome-file>main.jsp</welcome-file>
</welcome-file-list>
also i gave my login.jsp in
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Addval Info</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
Its working fine when i give the root path like
http://localhost:8080/project1
It will go to login.jsp and ask username and password. If user successfully login they will redirect to main.jsp..
Instead if i give
http://localhost:8080/project1/login.jsp
It will go to login.jsp.. If user successfully login, it will give error like,
Type Status report
MESSAGE : Invalid direct reference to form login page
DESCRIPTION : The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).
Sorry for my poor English...

Thanx in Advance
Kalaiselvan.S
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dobut in Realm Authentication
 
Similar Threads
Jboss ldap
DD entries for authentication
Urgent please -Security setting in Jsp
Form based authentication in java server faces.
Tomcat Security