File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202

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
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
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


Ping & DNS - my free Android networking tools app
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