Howdy, Looks good. Did you try either one of the filters individually to see if it works by itself? Do you have any other errors in your logs? Anything else in web.xml?
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Patrick Scheuerer [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 06, 2004 10:52 AM >To: Tomcat Users List >Subject: Re: cannot get Filters to work with Tomcat 5.0.16 > >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
