tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject Servlet filter mapping
Date Sat, 16 Nov 2002 12:12:46 GMT
Hi, 
I have a filter that I want to be used for most paths in my webapplication. 
The paths in the webapp are created on runtime, and there for I cannot put them in web.xml,
so I put url-pattern=/*

Something like : 

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


Which basically means all requests with in the webapplication are running the filter. That's
a bit of a load, that I dont want, so I really now look for a way to exclude some urls, in
the url-pattern. How do I do it ? For example if I want to exclude .jpg but run the filter
on everything else.


Thanx
-reynir


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message