The URL pattern parameter is not a general-purpose regular expression; only certain patterns are valid. In particular, if you want to do extension mapping you have to use "*.do" (which will catch all requests that have this extension on the end).
Inside your filter, you can be smart about deciding whether a particular request URI is really one you want to play with, or if you should just pass it on unmodified. Craig On Fri, 14 Mar 2003, Ashish Kulkarni wrote: > Date: Fri, 14 Mar 2003 13:57:11 -0800 (PST) > From: Ashish Kulkarni <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [OT]servlet filter problem > > Hi, > Tomcat 4.1.12 > I have the following definition in my web.xml, but > some how it is not working... > I want to filter all the request which go to > /pages/planning/*.do > How do i do it?? > <filter> > <filter-name>MapsValidFilter</filter-name> > > > <filter-class>com.pfizer.maps.common.MapsValidFilter</filter-class> > </filter> > > <filter-mapping> > <filter-name>MapsValidFilter</filter-name> > > <url-pattern>/pages/planning/*.do</url-pattern> > </filter-mapping> > > > ===== > A$HI$H > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]