Get the CmsObject

From OpenCms Wiki
Revision as of 17:05, 4 July 2011 by Ben (Talk | contribs)
Jump to: navigation, search

The CmsObject gives you access to many of OpenCMS' features.

   <%@page import="org.opencms.file.CmsObject"%>
   <%@page import="org.opencms.jsp.CmsJspActionElement"%>
   <%
      CmsJspActionElement jsp = new CmsJspActionElement(pageContext, request, response);
      CmsObject cms = jsp.getCmsObject();
 
      ... do something useful
   %>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox