On Sat, 16 Nov 2002, Reynir Hübner wrote:
> Date: Sat, 16 Nov 2002 12:12:46 -0000 > From: Reynir Hübner <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Servlet filter mapping > > 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. > There are only four standard URL patterns (and this applies to servlet mappings and security constraints as well as filter mappings): * Exact match (/foo) * Path match (/foo/*) * Extension match (*.foo) * Default servlet (/) which is useful only for servlet mappings There is no legal syntax to say "all but this set of paths". > > Thanx > -reynir > Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>