[opencms-dev] How to get the online/offline status

Jonathan Woods jonathan.woods at scintillance.com
Sat May 20 13:01:34 CEST 2006


Luke -

// Get and initialise a CmsJspActionElement.

CmsJspActionElement cmsJspActionElement = new CmsJspActionElement();
cmsJspActionElement.init(pageContext, request, response);

// Retrieve the CmsObject and CmsRequestContext state objects.

CmsObjejct cmsObject = cmsJspActionElement.getCmsObject();
CmsRequestContext requestContext = cmsObject.getRequestContext(); 

// Find out which project the user's in.
CmsProject currentProject = requestContext.currentProject();

// And then various methods on CmsProject should help you.

Jon

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of lk
Sent: 20 May 2006 11:03
To: opencms-dev at opencms.org
Subject: [opencms-dev] How to get the online/offline status

Hi,

Is there a method to get the online/offline status inside a jsp scriplet?

Thanks

LuKe
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Cogli la fortuna, scegli il fiore giusto e vinci un weekend con Best
Western!
*
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5093&d=20-5

_______________________________________________
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