This is a tough one - I've always configured my filters to include all
relevant URL's (logical equivalent of exclusion for non-matches).



-----Original Message-----
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 29, 2006 11:20 AM
To: Tomcat Users List
Subject: How i can exclude a url pattern for a filter ?


Hi
Thank you for reading my post
I have defined a filter in my web.xml and for some of my pages it should 
be applied but not for all of them.
for example i should exclude a subdirectory like : webroot/s/ from this 
filter
but filter should be applied for  other subdirectory and files .

can some one tell me how i should configure it ?


My current filter mapping :

    <filter>
        <filter-name>Checker</filter-name>
        <filter-class>
            com.leg.checker
        </filter-class>
    </filter>

    <filter-mapping>
        <filter-name>Checker</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to