[opencms-dev] response.setContentType()

Jonathan Woods jonathan.woods at scintillance.com
Thu Nov 16 16:33:01 CET 2006


Marian -

This might help:

http://www.opencms-forum.de/opencms-forum/viewthread?thread=1263#3350

Jon 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of SCHEDENIG Marian
Sent: 16 November 2006 15:00
To: The OpenCms mailing list
Subject: RE: [opencms-dev] response.setContentType()

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

_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list