RE: filter to set content type

2002-07-22 Thread Dmitry Melekhov
you need a wrapper for the response object. Sorry, I can't understand how it works yet :-( Anyway, I wrote wrapper: import javax.servlet.http.*; public class MyResponseWrapper extends HttpServletResponseWrapper { public MyResponseWrapper(HttpServletResponse response) {

RE: filter to set content type

2002-07-22 Thread Craig R. McClanahan
like: response.setHeader(Content-Type, text/html); Craig On Tue, 23 Jul 2002, Dmitry Melekhov wrote: Date: Tue, 23 Jul 2002 09:13:56 +0500 From: Dmitry Melekhov [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Subject: RE: filter to set

Re: filter to set content type

2002-07-22 Thread Dmitry Melekhov
Craig R. McClanahan wrote: You are trying to set the content type on the real response after it's been flushed (if the response is bigger than the output buffer), which won't do any good because the HTTP headers are long gone. Try changing the setContentType() method in your wrapper to