i have problem with the development of user interface in my web application.
The plan is:
- User write his username and password in login form and submit.
- The request comes to login servlet.
- Servlet looks to the database for that user and check pass etc..
I know about SSL, form based authentication, checking roles and storing users in DD web.xml.
But i need to store lots of users in database because of automation of creating. Is there any simple solution?
I think you’re looking for something like spring-security or app server proprietary ways of authenticating users stored in a database (like Tomcat’s JDBCRealm).
But frankly, if you know nothing about spring-security or even spring, and want to avoid proprietary solutions, writing your own servlet filter which goes to the database is quite an easy solution.