You can prefix map or extension map - not both.

Since regexs are a part of 1.4 JDK - I am hoping that regexes may be used for URL mapping in the next spec. (Of course - doing so can also kill performance too)

If you need real flexibility now - I have some servlet utilities that where you can create a filter which conditionally runs based on an EL expression.

http://funkman.home.comcast.net/servletutils-0.2/

-Tim

Phillip Qin wrote:

Why this "url-pattern" is always un-nature? I always have difficulties
reading filter section in servlet spec 2.3. Couldn't we simply use /*.jsp in
the next release of servlet, i.e. servlet xp?

-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 10:32 AM
To: Tomcat Users List
Subject: Re: adding HTTP headers for all responses in web application



Actually the pattern is *.jsp - not /*.jsp

-Tim

Phillip Qin wrote:


If your pattern is /*.jsp, then your filter applies to all jsps.


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



Reply via email to