[opencms-dev] response.setContentType()
SCHEDENIG Marian
Marian.Schedenig at qualysoft.com
Thu Nov 16 16:00:04 CET 2006
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
>
> You could try to rename your actual jsp to .gif. That has
> sometimes done the trick for me :)
The problem is that in the final solution, I have to serve different
types of images, so I can't hardcode the mimetype. I'm only setting it
to "image/gif" for my example jsp.
> You also might have to set
> the setContentType for the request that you get from the
> cmsobj.getRequestContext().
I can't find a way to get a ServletResponse from a CmsObject, and it
doesn't seem to have a setContentType() method itself?
Thx,
Marian.
More information about the opencms-dev
mailing list