tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [OT] Sevlet Filter + Deployment Descriptor
Date Mon, 30 Sep 2002 16:06:15 GMT


On Tue, 20 Aug 2002, gautam wrote:

> Date: Tue, 20 Aug 2002 14:59:48 +0530
> From: gautam <gautam@applabs.net>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: TomCat User <tomcat-user@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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message