Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PhaseListener vs Servlet Filters  RSS feed

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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!