[opencms-dev] Re: Serving WML and XHTML with WALL tag library

Thomas März thomas.maerz at gmail.com
Fri Jul 14 15:52:52 CEST 2006


Michael Kraus <michael.kraus at mindmatics.de> writes:

> Has anyone experience setting the response's MIME type manually within OpenCms?

Use cms.getResponse().setHeader() and apply this patch:


### Eclipse Workspace Patch 1.0
#P OpenCms 6.0.4
Index: opencms/src/org/opencms/flex/CmsFlexResponse.java
===================================================================
RCS file: /usr/local/cvs/opencms/src/org/opencms/flex/CmsFlexResponse.java,v
retrieving revision 1.41
diff -u -r1.41 CmsFlexResponse.java
--- opencms/src/org/opencms/flex/CmsFlexResponse.java	12 Oct 2005 15:37:13 -0000	1.41
+++ opencms/src/org/opencms/flex/CmsFlexResponse.java	14 Jul 2006 13:46:49 -0000
@@ -659,10 +659,10 @@
             return;
         }
 
-        if (CmsRequestUtil.HEADER_CONTENT_TYPE.equalsIgnoreCase(name)) {
-            setContentType(value);
-            return;
-        }
+//        if (CmsRequestUtil.HEADER_CONTENT_TYPE.equalsIgnoreCase(name)) {
+//            setContentType(value);
+//            return;
+//        }
 
         if (m_cachingRequired && !m_includeMode) {
             setHeaderList(m_bufferHeaders, name, value);

Regards,
Thomas




More information about the opencms-dev mailing list