Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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(

Entity bean(

and Session bean(

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