> -----Original Message----- > From: Gili [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 10:39 AM > To: Ralph Einfeldt; Tomcat Users List > Subject: Re: AW: AW: AW: HELP! Configuring HTTP-headers per mime type? > > > On Tue, 10 Sep 2002 16:27:37 +0200, Ralph Einfeldt wrote: > > >The filter would be more general. > > > >Define a filter that is triggered for every request. > >In the filter set the header depending on the kind > >of object that is requested. (The simple solution: > >map extensions to mime types. What's good for an > >operation system or for tomcat should be enough for > >you too :} ) > > Yes, I understand, but what I am asking is where does > one tell Tomcat to use > my filter for every request?
in your web.xml. <filter-mapping> <filter-name>MyFilter</filter-name> <url-pattern>*.html</url-pattern> </filter-mapping> Charlie > > Thanks, > Gili > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>