Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PhaseListener vs Servlet Filters

Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! I couldn't find any useful tutorials as of the moment about PhaseListener. I need to implement an authentication feature and I don't want to do authentication for every controller/backing bean. This was already possible with Servlet Filters but I want to be able to access managed beans easilly so I was wondering if you guys could drop your opinion on which one I should use.

In Servlet filters we could specify which URL the Filter would be applied. Is it the same with PhaseListeners? Could you please give me an example? Thanks!
They weren't very bright, but they were very, very big. Ad contrast:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!