Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security in Interceptor Filter

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic