[opencms-dev] steps to get the database connection using opencms api

Christian Steinert christian_steinert at web.de
Thu Jul 27 00:45:10 CEST 2006


perumallu mamillapalli wrote:
> Thank you.
> Buti need code snippet to connect to existing opencms database.
> i mean how to get using CmsObject class.
>  
> Thanks in advance
>  
> --peru
> 

getting a CmsObject for the current user is very simple:
______

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

CmsObject cmsO = cms.getCmsObject();

_____

christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060727/4cb2134a/attachment.bin>


More information about the opencms-dev mailing list