[opencms-dev] OpenCMS and portlets.

Alexander Kandzior alex at opencms.org
Fri Jul 23 16:52:01 CEST 2004


What version do you use? 
 
If you use the current "stable" release, there is no easy way (without core
code modifications) to get a CmsObject.
 
This has changed in the current development version (CVS HEAD). In this
version you can get access to a CmsObject using the OpenCms singleton Object
(e.g. using method OpenCms.initCmsObject(String unsername). This just
requires that OpenCms shares an application context with your application.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>  

 
 -----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Ivo Esteves
Sent: Friday, July 23, 2004 4:25 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] OpenCMS and portlets.



Hi, 

I'm newbie in OpenCMS. 

 

I'm developing a portal using portlets and we decide to use OpenCMS only to
be the Content Management Service. 

 

To access resources I've got to use the OpenCMS API, so far so good, but I
don't know how to get the CMSObject.

So far I only see examples in JSP, that use CmsJspActionElement class to get
it, but I'm using portlets (Java) and I don't how to get the CMSObject to
access resources,

 

If anyone has an idea... 

 

Thanks in advance.

 

Ivo Esteves

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040723/bd7bae36/attachment.htm>


More information about the opencms-dev mailing list