On 5/10/07, webzo <[EMAIL PROTECTED]> wrote:
Ok, this should have been simple. But Tomcat doesn't seem to be doing what I thought it would- I have a bunch of jsp files under a directory called "protected". I want a filter to be invoked when these files are accessed. I also have a directory called "includes" under "protected". I DON'T want the filter to be invoked when files under "includes" are accessed. I cannot change this directory structure. I used the pattern "/protected/*.jsp" for the filter in question
BZZZT. See the Servlet Spec -- SRV.11.2 Your pattern is invalid (and so is "/*.jsp" -- if that actually worked, it's a bug.) The url-pattern isn't a wide-open regexp, so I think you'll have to change your Filter to ignore the "includes" subdirectory, unless you can differentiate based on the request type (client request, forward, include -- see SRV.6.2.5). HTH, -- Hassan Schroeder ------------------------ [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]