<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What is the solution or workaround so that I can set the response
content-type, e.g., to <span class=maintext>application/vnd.wap.xhtml+xml </span>or
<span class=maintext>text/vnd.wap.wml?<o:p></o:p></span></span></font></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></span></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>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.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></span></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Thanks for any help.<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></span></p>

<p class=MsoNormal><span class=maintext><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Ben Hurwitz</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

</div>

</body>

</html>