aspose file tools*
The moose likes Servlets and the fly likes Login authentication code should be inputted in Servlet or in a Listener class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Login authentication code should be inputted in Servlet or in a Listener class?" Watch "Login authentication code should be inputted in Servlet or in a Listener class?" New topic
Author

Login authentication code should be inputted in Servlet or in a Listener class?

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Login authentication code should be inputted in Servlet or in a Listener class??


http://www.lifesbizzare.blogspot.com || OCJP:81%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61424
    
  67

What do you think and why?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Login authentication has some business logic in it.Hence i assume it has to be coded in servlets .


But also i think authentication code should be loaded before starting the actual application.

Not sure whats the correct answer but I am tending more towards Servlets...Is it correct?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login authentication code should be inputted in Servlet or in a Listener class?