Re: Filters - get content-type of a response?

2003-01-18 Thread David Orriss Jr
On Fri, Jan 17, 2003 at 06:38:30PM -0800, Craig R. McClanahan wrote: There is indeed a way to do this ... the following example hasn't been tested, but should give you a starting point. Craig, Exactly what I needed. Thanks for the insights... Have a good weekend.. -- David Orriss Jr.

Re: Filters - get content-type of a response?

2003-01-18 Thread Joe Tomcat
On Fri, 2003-01-17 at 18:38, Craig R. McClanahan wrote: The key problem is that there's no method like getContentType() on the HttpServletResponse interface, right (at least not until you get to Servlet 2.4, where it was added)? OK, no problem ... let's add one. We can't change the servlet

Filters - get content-type of a response?

2003-01-17 Thread David Orriss Jr
Hey there... The only examples I've found thus far are syntactially incorrect so I'll run my question up the flagpole here... g Can I find out the content-type of a *response* in a filter and then act on that accordingly? If so, can someone provide a snippet? Thanks much. -- David Orriss Jr.

Re: Filters - get content-type of a response?

2003-01-17 Thread Craig R. McClanahan
On Fri, 17 Jan 2003, David Orriss Jr wrote: Date: Fri, 17 Jan 2003 18:02:32 -0800 From: David Orriss Jr [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Filters - get content-type of a response? Hey there... The only examples I've found