• Post Reply Bookmark Topic Watch Topic
  • New Topic

Login using EJB(Servlet, JSP, Entity bean and Session bean )  RSS feed

 
Rax Sico
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,I want to add an authentication i.e login using email and password for users.I don't know how to do it using session and entity bean. Although I am able to insert data in database using session and entity bean and servlet.

I am using glassfish server and connection pooling.

Here is the login page(login.jsp)

   
Here is the Controller Servlet(ControllerServlet.java)

   
Entity bean(Login.java)

   
and Session bean(LoginManager.java)

   
Please tell me what code should I write in session bean and controller servlet to achieve the authentication.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!