You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/10 07:47:50 UTC
DO NOT REPLY [Bug 15944] New: -
Compiled JSP page includes default setContentType() Call when not specified in the JSP page.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15944>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15944
Compiled JSP page includes default setContentType() Call when not specified in the JSP page.
Summary: Compiled JSP page includes default setContentType() Call
when not specified in the JSP page.
Product: Tomcat 4
Version: 4.1.18
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: Jasper 2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: peilinz@hotmail.com
If the JSP file does not set content type, the following line is automatically
generated in the compiled .java file:
response.setContentType("text/html;charset=ISO-8859-1");
In cases where the content type is set in the servlet (e.g.: a subclass of
struts Action class) and the JSP page is forwarded to, this behavior overwrites
the intended content type with "text/html;charset=ISO-8859-1".
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>