File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Login authentication using tomcat7

laxmi ragu

Joined: Jun 24, 2012
Posts: 1

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" 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.

I agree. Here's the link:
subject: Login authentication using tomcat7
It's not a secret anymore!