tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: AW: AW: AW: HELP! Configuring HTTP-headers per mime type?
Date Tue, 10 Sep 2002 18:04:41 GMT
> -----Original Message-----
> From: Gili [mailto:junk@bbs.darktech.org]
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
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