Thanks all. 
As long as I am not missing something and thats how it works, I guess nothing 
much I can do about it.

Av

----- Original Message ----
From: "Reich, Matthias" <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Friday, May 11, 2007 4:09:02 AM
Subject: RE: url-pattern troubles...

The annoying thing about it is, that you cannot use a pattern that says
"ignore /protected/include".
Thus, you must specify patterns for all subdirectories that shall be
protected separately.
 
Matthias

> -----Original Message-----
> From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 11, 2007 2:45 AM
> To: Tomcat Users List
> Subject: Re: url-pattern troubles...
> 
> 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]
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to