is there any special purpose for filters. all examples i have seen is just simple ones. i didn't get any knowledge from that.
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
1
posted
0
One basic principle of modern computer architecture is separation of concerns.
By creating filters for particular common processes we make it easier to put together systems with parts that are known to work. You dont have to reinvent the wheel for every application.
As bill said it is separation of particular concern.
To demonstrate it properly, we have used a Tuckey's UrlRewrite filter. Our requirement is show the URL's in SEO friendy manner like www.nissan.com/Acura/MDX instead of www.nissan.com?make=Acura&model=MDX.
The job of the filter is to convert the SEO friendly url to Server understandable URL. This made our pages get ranked more by Search Engines and improved the readability.