This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login authentication using tomcat7

 
laxmi ragu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic