Hi,
I have the following in my web.xml:
As I understand I am applying the filter on "default"
servlet. This is what the specification says for it: "A
string containing only the ’/’ character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path
and the path info is null."
When I access
http://localhost:8080/mywebapp/, it shows the index.jsp page and I am also expecting this filter to execute but it is not. I don't understand why. When I chage the url
pattern to /*, it does execute but not for /. I tried it on
tomcat as well as glassfish.
How to I apply a filter to this default servlet?
thanks!