You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/08/12 15:57:07 UTC

DO NOT REPLY [Bug 27957] - JSP content type overrides serializer

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=27957>.
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=27957

JSP content type overrides serializer





------- Additional Comments From jpvanalteren@binarysoul.net  2004-08-12 13:57 -------
I've found a simple work-around for this bug. Starting your JSP with '<%@ page
language="java" contentType="" %>' or setting the content type in a scriptlet
('<% response.setContentType(""); %>') works for me. Apparently, Tomcat
(v5.0.24) sets the content type to a default of 'text/html' when the JSP doesn't
explicitly set it.

Kind regards,

Jonathan