Get the CmsObject

(Difference between revisions)
Jump to: navigation, search
 
m (Get the CMSObject moved to Get the CmsObject: Spelling error)

Revision as of 10:51, 6 April 2010

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