tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24970] - charset appended to content-type even if not text/*
Date Mon, 02 Aug 2004 08:14:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=24970>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24970

charset appended to content-type even if not text/*





------- Additional Comments From frederic.surleau@atosorigin.com  2004-08-02 08:14 -------
OK, I read the "JavaServer Pages Specification" and it's clear that JSPs are
servlets only designed to send TEXT data.

Trying to send a PDF or other binary data via a JSP should not be done.
A servlet should be written for this kind of things.

The workaroud 'response.reset()' should not be used in a production environment.
It works with the actual Coyote implementation, but nothing can guarantee that
others implementation will accept it.
In facts, the getOutputStream() method should not be allowed in a JSP.

The getWriter() method should be called() as soon as possible in the generated
java code of the JSP. Then a call to getOutputStream() would result in a
IllegalStateException.

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message