public class CmsJspTagContentAccess extends CmsJspScopedVarBodyTagSuport
<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>| Constructor and Description |
|---|
CmsJspTagContentAccess() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getLocale()
Returns the locale.
|
java.lang.String |
getVal()
Returns the name for the optional attribute that provides direct access to the content value map.
|
void |
release() |
void |
setLocale(java.lang.String locale)
Sets the locale.
|
void |
setVal(java.lang.String val)
Sets the name for the optional attribute that provides direct access to the content value map.
|
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributedoAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic CmsJspTagContentAccess()
public int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportTag.doEndTag()public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionTag.doStartTag()public java.lang.String getLocale()
public java.lang.String getVal()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class CmsJspScopedVarBodyTagSuportTag.release()public void setLocale(java.lang.String locale)
locale - the locale to setpublic void setVal(java.lang.String val)
val - the name for the optional attribute that provides direct access to the content value map