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

Security in Interceptor Filter  RSS feed

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I'm using an MVC based framework (similar to Struts). I have a basic Question, why should I use a pattern like Interceptor Filter to authenticate users instead of doing the same thing inside the controller servlet.

Is there any practical use of Interceptor Filter while using Frant Controller.

Pls help...
Thanks,
Reema
 
Dattatray Sutar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reema Patel:
Hello All,
I'm using an MVC based framework (similar to Struts). I have a basic Question, why should I use a pattern like Interceptor Filter to authenticate users instead of doing the same thing inside the controller servlet.

Is there any practical use of Interceptor Filter while using Frant Controller.

Pls help...
Thanks,
Reema


I think u can prepare different filters as per ur requirement and apply easily these filters before calling any of ur servlets,pages. So applying restrictions 2 the servlets or actions whenever u want easily.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!