Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implementing user authentication and Authorization in servlet/JSP application

 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts ! I'm working on an application using Struts, Servlet and JSP .. so I tried to implement my own logic for login-logout system but failed....

Now please help me implementing this using any other Java EE API provided for the same....

Actually I have a bunch of page where I need to authenticate Login users only.. Help me please.....


Thanks

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You can implement this using FORM based authentication taken care by container. Refer here an example when using Tomcat server. For other servers like WAS, the mappings should be done through admin consoles.

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's much preferable to use the existing security mechanisms rather than invent your own. Some starting points are here: https://www.coderanch.com/how-to/java/ServletsFaq#security
 
Bhavesh Sangwan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Friends ... I hope it will be helpful to me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic