[opencms-dev] Generate CmsObject

Mario Jäger m.jaeger at alkacon.com
Thu Jun 10 18:02:52 CEST 2010


Hi,

I am not sure what you exactly mean. But this code snippet shows, how you can get a CmsObject, for example in a Jsp:

<%@ page import="org.opencms.jsp.*, org.opencms.file.*" %><%

// Create a JSP action element
CmsJspActionElement action = new CmsJspActionElement(pageContext, request, response);

// get the CmsObject
CmsObject cms = action.getCmsObject();

%>

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org


Ángel Cristóbal Lázaro Ríos schrieb:
> Hi all,
>
> There is any way to generate a CmsObject out of the context of the web application? I have tried the way said in OpenCms 7.5.2 api.
>
> Thanks a lot
> ______________________
> This message including any attachments may contain confidential 
> information, according to our Information Security Management System,
>  and intended solely for a specific individual to whom they are addressed.
>  Any unauthorised copy, disclosure or distribution of this message
>  is strictly forbidden. If you have received this transmission in error,
>  please notify the sender immediately and delete it.
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
>  puede contener informacion clasificada por su emisor como confidencial
>  en el marco de su Sistema de Gestion de Seguridad de la 
> Informacion siendo para uso exclusivo del destinatario, quedando 
> prohibida su divulgacion copia o distribucion a terceros sin la 
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
>  erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
> Gracias por su colaboracion.
>
> ______________________
>
>
> _______________________________________________
> 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
>   



More information about the opencms-dev mailing list