tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: url-pattern problems with filters
Date Fri, 09 Nov 2001 00:54:22 GMT


On Thu, 8 Nov 2001 sappling@automatedlogic.com wrote:

> Date: Thu, 8 Nov 2001 09:21:22 -0500
> From: sappling@automatedlogic.com
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: url-pattern problems with filters
>
> I am trying to specify a url pattern for a filter that will apply the
> filter to all the files in all subdirectories underneath a specified
> directory.
>
> Given the following directories:
>
> /A
> /A/B
> /A/B/C
>
> I tried a filter mapping using <url-pattern>/a/*</url-pattern>.  From my
> reading of the servlet specification (2.3) I thought this would apply to
> all files in "/A", "/A/B", and "/A/B/C".  It appears, however, to only
> apply to the files in "/A".  Is this correct.  Although it is not
> explicit, the servlet specification seems to imply that all the
> subdirectories should be included too.  How can I do this without having
> to explicitly map every subdirectory?
>
> Thanks
>

A pattern "/a/*" should definitely match a request for "/a/b/c".  It
should definitely not match a request for "/A/B/C" because URl patterns
are case sensitive.  Was that just a typo in your mail message, or are you
really trying that?

Craig



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message