tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Janner" <>
Subject RE: <filter-mapping> syntax question
Date Fri, 23 Oct 2009 21:34:52 GMT
Thanks.  Since I'm running Tomcat 5.5.x I guess I'm stuck witht he one at a time route right
But your answer was exactly what I needed to see/know.

-----Original Message-----
From: Konstantin Kolinko [] 
Sent: Thursday, October 22, 2009 6:54 PM
To: Tomcat Users List
Subject: Re: <filter-mapping> syntax question

2009/10/23 Jeffrey Janner <>:
> OK, time for me to ask a newbie question. (And I did do some research,
> but didn't locate a definitive answer.)
> Can a <filter-mapping> entry have more than one <url-pattern> entries?
> For example:
>  <filter-mapping>
>    <filter-name>ImageFilter</filter-name>
>    <url-pattern>*.gif</url-pattern>
>    <url-pattern>*.jpg</url-pattern>
>    <url-pattern>*.png</url-pattern>
>  </filter-mapping>
> Or do I have to specify 3 mappings, one for each file type?

It is allowed in Servlet 2.5 web applications. There is an example in
servlet-2_5-mrel2-spec.pdf in chapter SRV.6.2.4.

It was not allowed in Servlet 2.4, as far as I am understanding web-app_2_4.xsd

So, that is the question of to what specification your web app adheres
(what version and schema are declared in web.xml), and you must be
using Tomcat 6.0.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which 
it is addressed and may contain information that is privileged, 
confidential, and exempt from disclosure under applicable law.  If the 
reader of this message is not the intended recipient or the employee or 
agent responsible for delivering this message to the intended recipient, 
you are hereby notified that any dissemination, distribution, or copying 
of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by reply or by 
telephone (call us collect at 512-343-9100) and immediately delete this 
message and all its attachments.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message