[opencms-dev] HowTo Access the CmsObject?

Borja Marcos Suarez borja.suarez at fundacionctic.org
Mon Jul 25 11:08:46 CEST 2005


Hi Anatol,

you can get it with:

<%

CmsJspActionElement cms= new CmsJspActionElement
(pageContext,request,response);

CmsObject object= cms.getCmsObject();

%>


Best regards,

Borja Marcos



-----Mensaje original-----
De: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] En nombre de Anatol
Enviado el: lunes, 25 de julio de 2005 11:02
Para: The OpenCms mailing list
Asunto: [opencms-dev] HowTo Access the CmsObject?

Hi All!

Can anybody tell me, how I can access the CmsObject in a JSP-Template? I

want to use some methods implemented in the CmsObject-Class, but I found

only examples for the use of JspActionElements and the NavElements.

It must be like:
CmsObject co = new CmsObject(CmsSecurityManager securityManager, 
CmsRequestContext context)

But the constructor-definition in the API manual with its parameter 
confuse me more than it helps. Where the hell I get the
securityManager??

I would be very happy if anyone could help!

Greetings
Anatol


_______________________________________________
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



More information about the opencms-dev mailing list