Package org.opencms.jsp
Class CmsJspTagContentAccess
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagContentAccess
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
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 ... >
<cms:contentaccess var="myVarName" val="myValueVarName" scope="page" />
... other code ...
</cms:contentload>- Since:
- 7.0.2
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intReturns the locale.getVal()Returns the name for the optional attribute that provides direct access to the content value map.voidrelease()voidSets the locale.voidSets the name for the optional attribute that provides direct access to the content value map.Methods inherited from class org.opencms.jsp.CmsJspScopedVarBodyTagSuport
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributeMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
CmsJspTagContentAccess
public CmsJspTagContentAccess()
-
-
Method Details
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- See Also:
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException- See Also:
-
getLocale
Returns the locale.- Returns:
- the locale
-
getVal
Returns the name for the optional attribute that provides direct access to the content value map.- Returns:
- the name for the optional attribute that provides direct access to the content value map
-
release
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classCmsJspScopedVarBodyTagSuport- See Also:
-
setLocale
Sets the locale.- Parameters:
locale- the locale to set
-
setVal
Sets the name for the optional attribute that provides direct access to the content value map.- Parameters:
val- the name for the optional attribute that provides direct access to the content value map
-