when you specify the <dispather> element in filter element with any of the three FORWARD,INCLUDE with <servlet-name> tag what will happen ???
whether the container will invoke the filter for a request for the specified
servlet ? or when the forward() or include() call happened in the specified servlet ? or it will invoke on both occasions ?
for example
(from servlet spec 2.4)
<filter-mapping>
<filter-name>Logging Filter</filter-name>
<servlet-name>ProductServlet</servlet-name>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
what will happen??