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

Siegfried Puchbauer siegfried.puchbauer at gmail.com
Wed Mar 1 18:03:08 CET 2006


have a look at
http://www.opencms-forum.de/viewtopic.php?t=1263

hth

sigi

On 3/1/06, Ben Hurwitz <bhurwitz at m-qube.com> wrote:
>
>  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
>
>
> _______________________________________________
> 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
>
>


--
Mit freundlichen Grüßen

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


More information about the opencms-dev mailing list