aspose file tools*
The moose likes JSP and the fly likes Login authentication using tomcat7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Login authentication using tomcat7" Watch "Login authentication using tomcat7" New topic
Author

Login authentication using tomcat7

laxmi ragu
Greenhorn

Joined: Jun 24, 2012
Posts: 1
Hi,

I am new to jsp/servlets.I am trying to learn form-based authentication and looked up the DD configurations from Head First Servlets/Jsps.I am using tomcat 7 and Eclipse Indigo.

/SecurityPage.jsp is my constrained resource.I am using "tomcat" role, username="tomcat" ,password ="tomcat"...as configured in the tomcat-users.xml.When I type in the username and password(tomcat,tomcat) it always redirects me to the login-error page.At this point /SecurityPage.jsp does not have much.



Following is my web.xml



Following is my Login- Error-Page


Following is my Login Page




Pl respond so I can correct my silly mistake.



 
wood burning stoves
 
subject: Login authentication using tomcat7
 
Similar Threads
Can't display web app security
Cannot Connect to database using datasource realm
Tomcat Realms not working between apps with FORM
How to implement j_security_check
problems with form-based authentication