[opencms-dev] access to CmsObject

Mathias Lin | SYSVISION mail at mathiaslin.com
Sun Feb 8 11:46:33 CET 2009

Hi Hernan,

I use Spring w/ OpenCms but not DWR. 

The CmsObject can be initialized as follows:
CmsObject cmsObj =

...and then do something like login for example...
String s = cmsObj.loginUser("Admin", "admin");


Hernán Leoni wrote:
> Hi,
> I'm working with opencms and dwr + spring.
> I'm doing it quite well, but at this moment I'm stuck here, the question 
> is: how can I access the CmsObject from a servlet other than the opencms 
> servlet.
> As far as I could see  the CmsObject is generated in OpenCmsCore 
> <http://files.opencms.org/javadoc/core/org/opencms/main/OpenCmsCore.html>, 
> but all methods are privates and I think I should not touch code in there.
> I would thanks any help.

Mathias Lin
View this message in context: http://www.nabble.com/access-to-CmsObject-tp21896856p21897588.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.

More information about the opencms-dev mailing list