HttpServletResponseWrapper is not meant to be used directly. It is meant to
be extended by programmer written class where you extedn only the methods needed.
See Google for Filter tutorials for more info.
-Tim
Antony Paul wrote:
> Thank you for the reply.
> I cannot understand the said. The response from the server may be
> html,excel file , text file or PDF file. These are generated by both
> servlets and jsps. I have to replace the company name from the html
> responses only. I do it in a single filter( currently there is no other
> filter).
> Another question. Today when I am coding I found that the default
> HttpServletResponseWrapper cannot be used directly. It is not printing all
> the output. Now I am using an extended class as found in the example in the
> link http://java.sun.com/products/servlet/Filters.html#70176. Why the
> default wrapper is not working. Is it a programming error.
>
> rgds
>
> Antony Paul
>
> ----- Original Message -----
> From: "Tim Funk" <funkman@(protected)>
> To: "Tomcat Users List" <tomcat-user@(protected)>
> Sent: Friday, October 17, 2003 4:42 PM
> Subject: Re: Getting contenttype of HttpServletResponseWrapper.
>
>
>
>>Override setContentType and when called set a variable in the
>>HttpServletRequest that the Filter can check.
>>
>>-Tim
>>
>>Antony Paul wrote:
>>
>>>Hi all
>>> How to know the content type of an HttpServletResponseWrapper. A
>
> filter
>
>>>need to know the content type of the respnse after the doFilter. It need
>
> to
>
>>>process only the text/html responses.
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>For additional commands, e-mail: tomcat-user-help@(protected)
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)