Form based authentication in java

Posted by Stardust on Stack Overflow See other posts from Stack Overflow or by Stardust
Published on 2010-03-19T07:30:37Z Indexed on 2010/03/19 7:51 UTC
Read the original article Hit count: 416

I want to know how can I enable form based authentication in java through database. After connecting to database, how can I verify whether the username and password, which I'm entering through html page is correct or not?

Do I have to change action servlets from j_security_check to another my own defined servlets, which will connect to database and do all its verification on its own? Or I've to send authentication information to j_security_check, which will automatically connect to database, verify username and password.

I'm successful in connecting to database through context.xml file, which is in META-INF directory of my own web application, but I'm not able to understand what's more I've to do enable form based authentication.

I'm using Tomcat 6 as web server.

© Stack Overflow or respective owner

Related posts about java

Related posts about forms-authentication