Thanks.  Since I'm running Tomcat 5.5.x I guess I'm stuck witht he one at a 
time route right now.
But your answer was exactly what I needed to see/know.

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

2009/10/23 Jeffrey Janner <jeffrey.jan...@polydyne.com>:
> 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



*******************************  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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to