I'm trying to make a java web application in netbeans. This project must contain jsp pages and the user must have the possibility to log in. I have no idea how to make the login mechanism. I'm using IDE netbeans , glassfish server and hibernate to connect with my mysql database.
Asked
Active
Viewed 1,079 times
-1
-
SO isn't the place to ask for tutorials, and this isn't a question about a specific problem. – JonK Apr 21 '14 at 15:33
-
Dont create your own login mechanism. Use those provided by web server. Search for authentication and authorization for [glassfish](http://www.simtay.com/part-2-securing-web-application-glassfish-v3-jaas-authentication-and-authorization/) or [tomcat](http://www.avajava.com/tutorials/lessons/how-do-i-use-form-authentication-with-tomcat.html). There are a lot of [factors](http://stackoverflow.com/questions/549/the-definitive-guide-to-form-based-website-authentication?rq=1) to consider. – medokr Apr 21 '14 at 15:52
1 Answers
0
You can accomplish your goal with Apache Shiro. This project makes it easy to implement the login mechanism that you are looking for. The "Website Login Demo" link below shows a complete demonstration. The project code offers an example as well.
See:
medokr
- 441
- 1
- 5
- 16