Get the CmsObject

From OpenCms Wiki
Revision as of 10:51, 6 April 2010 by Paul (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