[opencms-dev] Sending Headers in OpenCMS 6.2.3 and WAS 6
Dan Osterrath
Dan.Osterrath at gmx.de
Mon Feb 19 10:25:43 CET 2007
Christian Steinert schrieb:
> I have never used cms.setContentType(...);
> Have you tried using response.setContentType(...) instead?
I've already tried this as you can see in one of the multiple code snippets
in the original posting.
I tried setting the content type on the plain response object (that's the
OpenCMS wrapper), on the top response object (that's the IBM response
object) and the OpenCMS controller (that's a delegate to the top response
again). None of them worked.
> I have no experience with websphere, but as you have probably noticed,
> opencms has its own wrapper for the request and response objects of the
> servlet container. Maybe this wrapper is not working correctly on
> websphere when trying to set the content type.
This is obvious. But how to fix that? And who is to blame? OpenCMS or IBM
WAS 6?
> If response.setContentType doesn't work either then the only place where
> you could look is the code of
> org.opencms.flex.CmsFlexResponse.setContentType and see if there is
> something strange going on there. As it works when executing the JSP
> with WAS directly, then it really seems as if there is something wrong
> with either cms.setContentType or
> org.opencms.flex.CmsFlexResponse.setContentType.
Ok, I will have a closer look at the CmsFlexResponse...
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070219/5a8be3f2/attachment.sig>
More information about the opencms-dev
mailing list