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
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?
any hint guys?