• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Login authentication using tomcat7

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic