Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: cannot get Filters to work with Tomcat 5.0.16

Ralph Einfeldt

2004-01-06


There is an unneeded <servlet-name/>.

As I understand the error message you have to use
either <url-pattern> or <servlet-name>.

(Not shure if this is the problem, as I havn't used filters by now)

> -----Original Message-----
> From: Patrick Scheuerer [mailto:tabalooga@(protected)]
> Sent: Tuesday, January 06, 2004 5:32 PM
> To: Tomcat Users List
> Subject: Re: cannot get Filters to work with Tomcat 5.0.16
>
>
>  <filter-mapping>
>   <filter-name>UserFilter</filter-name>
>   <url-pattern>/*</url-pattern>
>   <servlet-name/>
>  </filter-mapping>
>  <filter-mapping>
>   <filter-name>AdminFilter</filter-name>
>   <url-pattern>/admin/*</url-pattern>
>   <servlet-name/>
>  </filter-mapping>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.