tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Scheuerer <tabalo...@hispeed.ch>
Subject Re: cannot get Filters to work with Tomcat 5.0.16
Date Tue, 06 Jan 2004 15:51:41 GMT
Shapira, Yoav wrote:

 > Howdy,
 > Your first filter-mapping is mapping to a servlet-name /*??   Either
 > put a defined servlet name there or map to url-pattern /*.


I'll try copy/paste this time. Here's the filter declaration:

<filter>
     <filter-name>UserFilter</filter-name>
     <filter-class>ch.ctc.support.common.UserFilter</filter-class>
</filter>

<filter>
     <filter-name>AdminFilter</filter-name>
     <filter-class>ch.ctc.support.common.AdminFilter</filter-class>
</filter>

<filter-mapping>
     <filter-name>UserFilter</filter-name>
     <url-pattern>/*</url-pattern>
</filter-mapping>

<filter-mapping>
     <filter-name>AdminFilter</filter-name>
     <url-pattern>/admin/*</url-pattern>
</filter-mapping>

I want every requets to go through the UserFilter and every request to 
/execute/admin/* (it's a Struts app) through the AdminFilter.

I can't see what's wrong.....

Patrick



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message