tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <delbd+jaka...@oma.be>
Subject Re: how to manipulate static content
Date Wed, 04 Jul 2007 12:36:16 GMT
Could it be you forgot to call filterChain.doFilter(request.response)
after adding your headers?

En l'instant précis du 04/07/07 14:18, lior grinfeld s'exprimait en ces
termes:
> Thanks for the tip, i used filters.
>
> now i facing other problem. if I use filter with request to static
> content (
> i did not write servlet for it , i want the defaultServlet to handle it)
> for some reason i do not get the content, it looks like the
> defaultServlet
> is doing nothing now, without filter it return the file i ask, with
> filter
> just the data the filter added.
> any ideas?
>
> 10X
> Lior
>
> On 7/4/07, David Delbecq <delbd+jakarta@oma.be> wrote:
>>
>> Either map to '/*' your custom servlet that returning the static content
>> with your custom headers, either write a servletfilter that add
>> additional header before processing request.
>>
>> En l'instant précis du 04/07/07 09:52, lior grinfeld s'exprimait en ces
>> termes:
>> > Hi,
>> >
>> > i am new at using tomcat.
>> > I want to use tomcat as a server to test our proxy. to do that i
>> need to
>> > manipulate the response headers, i did that without problems using
>> > servlets.
>> > now i want to manipulate the http response headers or content of
>> requests
>> > for static content.
>> > Ex. if i will do "GET myServer/somefile.txt" the tomcat will know to
>> > return
>> > the file and manipulate the response http headers as i want, or to do
>> > zip or
>> > to do chunks on the content.
>> > is it possible and how? where can i configure tomcat to refer to the
>> > directory where all my files are stored?
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message