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.

有帮助吗?

解决方案

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:

Apache Shiro Website Login Example

Apache Shiro Web Support Docs

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top