[opencms-dev] setContentType problem again
Alexander Kandzior
alex at opencms.org
Tue Mar 9 17:47:02 CET 2004
You are right, still the same issue without a proper solution.
In the meantime, try using
response.setHeader("Content-Type", "application/pdf");
let me know if it works, i didn't try myself.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of mike
> Sent: Tuesday, March 09, 2004 4:55 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] setContentType problem again
>
>
> The problem has already been described in a posting in the
> mailing list by Joerg Oppermann but there has been no solution.
>
> I was trying to set the content-type in a jsp via
> response.setContentType ("application/pdf") but the
> content-type of the resulting document stayed "text/html". I
> inspected the opencms-Sourcecode and found out that the code
> in the setContentMethod of CmsFlexResponse has been disabled.
> Since I am in desperate need to set the content-type to
> "application/pdf" for a dynamically created PDF-document I
> would like to know if anybody knows a workaround. I am using
> opencms 5.0.1.
>
> Thanks
> Mike
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list