org.opencms.jsp |
The implementation of the OpenCms JSP tag library, with some additional utility classes to
help in JSP scriplet code and navigation building.
Most of the classes in this package implement the <cms:> taglib.
To access the exact same functionality using scriptlets, obtain an instance
of a {@link org.opencms.jsp.CmsJspActionElement} from the current JSP.
Using the action element you can also access the current users OpenCms context
in a {@link org.opencms.file.CmsObject} , by using {@link org.opencms.jsp.CmsJspBean#getCmsObject()} .
To aid in template navigation building, have a look at the
{@link org.opencms.jsp.CmsJspNavBuilder} which provides a large selection of methods
to easily create dynamic navigations.
@version $Revision: 1.10 $
@since 6.0.0
@see org.opencms.file.CmsObject
@see org.opencms.file.types.CmsResourceTypeJsp
@see org.opencms.loader.CmsJspLoader
|
Java Source File Name | Type | Comment |
CmsContentInfoBean.java | Class | |
CmsJspActionElement.java | Class | |
CmsJspBean.java | Class | Superclass for OpenCms JSP beans that provides convient access
to OpenCms core and VFS functionality.
If you have large chunks of code on your JSP that you want to
move to a Class file, consider creating a subclass of this bean. |
CmsJspLoginBean.java | Class | |
CmsJspNavBuilder.java | Class | Bean to provide a convenient way to build navigation structures based on the
org.opencms.jsp.CmsJspNavElement .
Use this together with the
org.opencms.jsp.CmsJspActionElement
to obtain navigation information based on the current users permissions.
For example, use
CmsJspNavBuilder.getNavigationForFolder(String) and pass the
value of the current OpenCms user context uri obtained
from
org.opencms.file.CmsRequestContext.getUri as argument to obtain a list
of all items in the navigation of the current folder. |
CmsJspNavElement.java | Class | Bean to collect navigation information from a resource in the OpenCms VFS.
Each navigation element contains a number of information about a VFS resource,
obtained either from the resources properties or attributes. |
CmsJspScopedVarBodyTagSuport.java | Class | |
CmsJspTagContentAccess.java | Class | Used to access XML content item information from the current open <cms:contentload>
tag using JSP page context and the JSP EL.
The tag will create an instance of a
CmsJspContentAccessBean that is stored in the selected context.
Use the options provided by the bean to access the XML content directly.
For example together with the JSTL, use this tag inside an open tag like this:
<cms:contentload ... |
CmsJspTagContentCheck.java | Class | |
CmsJspTagContentInfo.java | Class | |
CmsJspTagContentLoad.java | Class | Implementation of the <cms:contentload/> tag,
used to access and display XML content item information from the VFS.
Since version 7.0.2 it is also possible to store the results of the content load in the JSP context
using a
CmsJspContentLoadBean . |
CmsJspTagContentLoop.java | Class | |
CmsJspTagContentShow.java | Class | |
CmsJspTagDecorate.java | Class | |
CmsJspTagEditable.java | Class | Implementation of the <cms:editable/> tag.
This class is also used to generate the direct edit buttons for the
<cms:include editable="..." /> and <cms:contentload editable="..." /> tags.
Since OpenCms version 6.2.3, the direct edit button HTML generated is controlled by an instance of
I_CmsDirectEditProvider .
The default direct edit provider used can be configured in opencms-workplace.xml in the
<directeditprovider class="..." /> node. |
CmsJspTagExport.java | Class | Allows to have certain JSP code on a JSP not processed by OpenCms,
which can be useful in case you want to create a JSP page using the OpenCms static export.
Usually, if you want to create a JSP page using the OpenCms static export,
some parts of the page should be processed by OpenCms, while other parts of the JSP
are processed later when the exported JSP is deployed in another servlet container.
A typical use case is that you have a template applied to the page in OpenCms, but the body content of the page
is generated after the static export, for example by a database application.
Please note: In order to static export a JSP page with the ".jsp" suffix, you need to add the
property "exportsuffix" with the value ".jsp" to the OpenCms JSP file in the VFS. |
CmsJspTagImage.java | Class | |
CmsJspTagInclude.java | Class | |
CmsJspTagIncludeTEI.java | Class | |
CmsJspTagInfo.java | Class | Provides access to OpenCms and System related information.
This tag supports the following special "property" values:
opencms.version returns the current OpenCms version, e.g. |
CmsJspTagLabel.java | Class | |
CmsJspTagLink.java | Class | |
CmsJspTagParam.java | Class | |
CmsJspTagParse.java | Class | Implements the <cms:parse></cms:parse> tag to allow parsing of nested
HTML with the
org.opencms.jsp.parse.A_CmsConfiguredHtmlParser } implementation specified by the "parserClass" attribute. |
CmsJspTagProperty.java | Class | Provides access to the properties of a resource in the OpenCms VFS .
Of particular importance is the setting of the file attribute,
which can take the following values.
This attribute allows you to specify where to search for the property.
The following values are supported:
- uri (default)
- Look up the property on the file with the
uri requested by the user.
|
CmsJspTagTemplate.java | Class | |
CmsJspTagUser.java | Class | |
CmsJspXmlContentBean.java | Class | |
I_CmsJspTagContentContainer.java | Interface | |
I_CmsJspTagParamParent.java | Interface | |
I_CmsXmlContentContainer.java | Interface | |
Messages.java | Class | Convenience class to access the localized messages of this OpenCms package. |