otnj2ee
02-20-2008, 07:50 PM
In the web.xml, there is a filter section, such as:
<filter>
<filter-name>TestFilter</filter-name>
<filter-class>com.test.TestFilter</filter-class>
</filter>
--Why do we need filter? or, under what circumstances should I use filter otherthan other class?
(Seems like I can use the servlet mapping to achieve the same)
Thanks
Scott
<filter>
<filter-name>TestFilter</filter-name>
<filter-class>com.test.TestFilter</filter-class>
</filter>
--Why do we need filter? or, under what circumstances should I use filter otherthan other class?
(Seems like I can use the servlet mapping to achieve the same)
Thanks
Scott