You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Glenn <mi...@radiantcore.com> on 2004/05/27 18:09:19 UTC
mime-type not set properly with JSP Source
Hello,
Using Cocoon 2.1.5 I'm attempting to generate a PDF from a JSP
generator. I'm using the Cocoon samples area to aid in this process by
basing my sitemap off the FOP sitemap and adding a JSP generator in
place of the XML generator sample. My XSL is the hello-world example
as the generated XML is compatible at the moment.
<map:match pattern="*.pdf">
<map:generate type="jsp" src="{1}.jsp" />
<map:transform
src="context://samples/hello-world/style/xsl/page2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
The problem is that the mime-type when starting with the JSP generator
is always text/html. The PDF is generated correctly however any web
browser upon seeing the mime-type text/html simply renders the PDF
contents to the screen. This occurs even in the JSP examples that come
with Cocoon. The hello.xml JSP example serializes the JSP page to XML
but the mime-type is still text/html. Attempting to force override this
mime-type with application/pdf does nothing. As a sanity test,
replacing the JSP generation with a static XML file generator works.
Is this a known issue and is there a workaround?
I'm working with JDK1.4 on OS-X 10.3.3 with Tomcat 5.0. I have not yet
tested this behaviour on other platforms.
Thanks to anyone for suggestions.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: mime-type not set properly with JSP Source
Posted by Garrick Dasbach <Ga...@musicrebellion.com>.
Yes, this bug is currently listed on bugzilla. You can see the report at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=27957
--
____________________________
Garrick Dasbach
Software Development
Digonex Technologies, Inc.
317.638.4174 Fax
CONFIDENTIALITY NOTICE: The information in this transmission is private, confidential, may be legally privileged, is property of the sender and is intended solely for the use of the addressee. If you are not the addressee, you should not read, disclose, distribute, copy, use or rely upon the information contained in this transmission. If you have received this transmission in error please delete or destroy it and notify DIGONEX TECHNOLOGIES, INC. immediately at (317) 638-4154.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org