aspose file tools*
The moose likes Servlets and the fly likes implementing user authentication and Authorization in servlet/JSP application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "implementing user authentication and Authorization in servlet/JSP application" Watch "implementing user authentication and Authorization in servlet/JSP application" New topic
Author

implementing user authentication and Authorization in servlet/JSP application

Bhavesh Sangwan
Ranch Hand

Joined: Aug 08, 2012
Posts: 57
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

Joined: Mar 21, 2008
Posts: 205


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.


Skanda
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Aug 08, 2012
Posts: 57
Thanks Friends ... I hope it will be helpful to me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: implementing user authentication and Authorization in servlet/JSP application