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" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]