Get the CmsObject

From OpenCms Wiki
Revision as of 07:38, 13 May 2007 by Äberle (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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