Hi,
I am trying to have a servlet Filter(Tomcat under bunled JBOSS 3.2.3) in place that will get invoked whenver there is a client request for any jsp.
Like a created a sample filter named
<filter-name>testFilter</filter-name>
<filter-class>test.Sample</filter-class>
<filter-mapping>
<filter-mapping>
<filter-name>testFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
The above thing works but it also invoking the Filter even when i am dispatching the resuqest to any jsp from inside a code. I think by default the filter mapping will work only on the client request i.e. the element "dispatcher" is "REQUEST", but when i try to add this element in the filter mapping to test whether it can work this way-- the web.xml is not getting parsed as it gives an error saying unknown element type "dispatcher".
Can anyone suggest where i am going wrong?
Thanks