Package org.opencms.jsp
Class CmsJspTagContentShow
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.opencms.jsp.CmsJspTagContentShow
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CmsJspTagContentShow extends javax.servlet.jsp.tagext.TagSupport
Used to access and display XML content item information from the VFS.- Since:
- 6.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagContentShow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
contentShowTagAction(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, java.lang.String element, java.util.Locale locale, boolean escape)
Internal action method to show an element from a XML content document.int
doEndTag()
int
doStartTag()
java.lang.String
getElement()
Returns the name of the content node element to show.java.lang.String
getLocale()
Returns the locale.void
release()
void
setElement(java.lang.String element)
Sets the name of the content node element to show.void
setEscapeHtml(java.lang.String value)
Set the escape html flag.void
setLocale(java.lang.String locale)
Sets the locale.
-
-
-
Constructor Detail
-
CmsJspTagContentShow
public CmsJspTagContentShow()
-
-
Method Detail
-
contentShowTagAction
public static java.lang.String contentShowTagAction(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, java.lang.String element, java.util.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
public int doEndTag()
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
Tag.doEndTag()
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- 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
public java.lang.String getElement()
Returns the name of the content node element to show.- Returns:
- the name of the content node element to show
-
getLocale
public java.lang.String getLocale()
Returns the locale.- Returns:
- the locale
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
Tag.release()
-
setElement
public void setElement(java.lang.String element)
Sets the name of the content node element to show.- Parameters:
element
- the name of the content node element to show
-
setEscapeHtml
public void setEscapeHtml(java.lang.String value)
Set the escape html flag.- Parameters:
value
- should be"true"
or"false"
(all values other then"true"
are considered to be false)
-
setLocale
public void setLocale(java.lang.String locale)
Sets the locale.- Parameters:
locale
- the locale to set
-
-