[opencms-dev] JSP with varying mime/type - or: How to use display tag in OpenCms

Claus Priisholm cpr at codedroids.com
Mon Dec 19 09:21:28 CET 2005


Using that approach you probably have to build your own export classes 
for displaytag. Alternatively you can use the export filter as described 
on the displaytag site.

Siegfried Puchbauer wrote:
> the solution:
> 
> <%
> response = org.opencms.flex.CmsFlexController.getController 
> (request).getTopResponse();
> response.setContentType("mime/type");
> %>
> 
> works with opencms 6.0.x
> 
> note: i would recommend that you do not use the top response object for 
> any other things than setting headers etc.
> 
> hth
> 
> 2005/12/15, Hossfeld, Felix <Felix.Hossfeld at bonprix.net 
> <mailto:Felix.Hossfeld at bonprix.net>>:
> 
>     Hello!
> 
>     I'm trying to use the export functionality of the display taglib in
>     my OpenCMS JSPs. This does not work as OpenCMS is alsways setting
>     the mime/type to text/html. The only way to stop OpenCms from doing
>     so is to change the extension of the jsp.
> 
>     However this is no solution to me: Since the mime/type of the
>     exported files can only be decided at run time, I need a way to
>     avoid the static assignment of OpenCms and set the mime/type at
>     runtime. Is this possible?
> 
>     Yours
> 
>     Felix Hoßfeld
> 
> 
>     _______________________________________________
>     This mail is send to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list, please
>     visit
>     http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> 
> 
> -- 
> Mit freundlichen Grüßen
> 
> Siegfried Puchbauer
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev

-- 
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms




More information about the opencms-dev mailing list