This content has been marked as final. Show 1 reply
What am i doing wrong???
I don't think the servlet spec supports regexes. It just supports the "*.jsp" and "/foo/*" style patterns. Note that some servlet engines (e.g. Resin) do support more than the spec says, but Tomcat seems to stick to the spec.
What I did once was write a filter that takes an init-param with a regex that I check myself (in my filter), and then apply it to /foo/*, etc.