You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2002/09/30 18:06:15 UTC

Re: [OT] Sevlet Filter + Deployment Descriptor


On Tue, 20 Aug 2002, gautam wrote:

> Date: Tue, 20 Aug 2002 14:59:48 +0530
> From: gautam <ga...@applabs.net>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: TomCat User <to...@jakarta.apache.org>
> Subject: [OT] Sevlet Filter + Deployment Descriptor
>
> Hello,
>
> I am trying to use the new javax.servlet.Filter interface and have a
> question about the deployment descriptor for filters. How do I specify more
> than one URL mapping ? Can I do it like in the example below ?
>
> <filter-mapping>
> 	<filter-name>someFilterService</filter-name>
> 	<url-pattern>*.do</url-pattern>
> 	<url-pattern>*.jsp</url-pattern>
> 	<url-pattern>*.html</url-pattern>
> 	...
> </filter-mapping>
>
> Or should the individual patterns have their own <filter-mapping>...
> </filter-mapping>?
>

Just as with servlet mappings, you must use more than one <filter-mapping>
for the same <filter-name>, with different URL patterns for each.

> Regards,
>
> Gautam S
>

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>