[opencms-dev] Setting Content-Type response header from a JSP page?

Ben Hurwitz bhurwitz at m-Qube.com
Wed Mar 1 17:15:25 CET 2006


Hello, I am a new programmer of OpenCms and I am trying to use it to
serve content to multiple types of mobile devices (using wurfl and the
wall tag library) from JSP pages.  I'm encountering a problem because it
appears that OpenCms is constantly setting the Content-Type header on
the response to text/html, overriding my attempts to set it otherwise.
My attempts include calling the setContentType() method on the
HttpServletResponse object, calling the setHeader() method on that same
response object, and setting the contentType attribute on the @page
directive.

 

What is the solution or workaround so that I can set the response
content-type, e.g., to application/vnd.wap.xhtml+xml or
text/vnd.wap.wml?

 

Note: I searched the mailing list archives on this topic and did not see
any responses to this question that would work in OpenCms 6.0.4.

 

Thanks for any help.

 

Ben Hurwitz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060301/c0be84e0/attachment.htm>


More information about the opencms-dev mailing list