aspose file tools*
The moose likes Struts and the fly likes Security in Interceptor Filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Security in Interceptor Filter" Watch "Security in Interceptor Filter" New topic
Author

Security in Interceptor Filter

Reema Patel
Ranch Hand

Joined: Jan 26, 2006
Posts: 169
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

Joined: Jul 12, 2006
Posts: 46
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.


with regards<br />Datta.<br /> <br />To the world you might be one person, but to one person you just might be the world !
 
 
subject: Security in Interceptor Filter