Package org.opencms.jsp
Class CmsJspTagContentShow
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.opencms.jsp.CmsJspTagContentShow
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
Used to access and display XML content item information from the VFS.
- Since:
- 6.0.0
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
contentShowTagAction
(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, String element, Locale locale, boolean escape) Internal action method to show an element from a XML content document.int
doEndTag()
int
Returns the name of the content node element to show.Returns the locale.void
release()
void
setElement
(String element) Sets the name of the content node element to show.void
setEscapeHtml
(String value) Set the escape html flag.void
Sets the locale.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CmsJspTagContentShow
public CmsJspTagContentShow()
-
-
Method Details
-
contentShowTagAction
public static String contentShowTagAction(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, String element, Locale locale, boolean escape) Internal action method to show an element from a XML content document.- Parameters:
container
- the content container to read the XML content fromcontext
- the current JSP page contextelement
- the node name of the element to showlocale
- the locale of the element to showescape
- if the result html should be escaped or not- Returns:
- the value of the selected content element
-
doEndTag
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
-
Tag.doEndTag()
-
doStartTag
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- See Also:
-
Tag.doStartTag()
-
getElement
Returns the name of the content node element to show.- Returns:
- the name of the content node element to show
-
getLocale
Returns the locale.- Returns:
- the locale
-
release
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
-
Tag.release()
-
setElement
Sets the name of the content node element to show.- Parameters:
element
- the name of the content node element to show
-
setEscapeHtml
Set the escape html flag.- Parameters:
value
- should be"true"
or"false"
(all values other then"true"
are considered to be false)
-
setLocale
Sets the locale.- Parameters:
locale
- the locale to set
-