tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Tomcat <tom...@mobile.mp>
Subject Re: Filters - get content-type of a response?
Date Fri, 17 Jan 2003 18:01:28 GMT
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 API, but we *can* create a wrapper around the
> response that augments the servlet API, and pass that on to the servlet
> that is actually executed.  Something like this:

I'm glad to hear it's being added to 2.4.  This is a big deal for those
of us who must format content for different front-end formats, so our
tags can properly escape stuff for different formats.



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message