File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security in Interceptor Filter

 
Reema Patel
Ranch Hand
Posts: 169
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic