Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 8761 invoked from network); 2 Aug 2004 08:13:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Aug 2004 08:13:15 -0000 Received: (qmail 41037 invoked by uid 500); 2 Aug 2004 08:13:07 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 40721 invoked by uid 500); 2 Aug 2004 08:13:04 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 40708 invoked by uid 99); 2 Aug 2004 08:13:04 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 02 Aug 2004 01:13:04 -0700 Received: (qmail 13148 invoked by uid 50); 2 Aug 2004 08:14:33 -0000 Date: 2 Aug 2004 08:14:33 -0000 Message-ID: <20040802081433.13147.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 24970] - charset appended to content-type even if not text/* X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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