Get the CmsObject
(Difference between revisions)
m (Get the CMSObject moved to Get the CmsObject: Spelling error) |
m |
||
Line 1: | Line 1: | ||
The CmsObject gives you access to many of OpenCMS' features. | The CmsObject gives you access to many of OpenCMS' features. | ||
− | + | <source lang="java"> | |
<%@page import="org.opencms.file.CmsObject"%> | <%@page import="org.opencms.file.CmsObject"%> | ||
<%@page import="org.opencms.jsp.CmsJspActionElement"%> | <%@page import="org.opencms.jsp.CmsJspActionElement"%> | ||
Line 10: | Line 10: | ||
... do something useful | ... do something useful | ||
%> | %> | ||
+ | </source> | ||
+ | |||
+ | [[Category:Developing in OpenCms ]] |
Revision as of 17:05, 4 July 2011
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 %>