org.opencms.jsp
Class CmsJspTagContentShow

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.opencms.jsp.CmsJspTagContentShow
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, 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
Version:
$Revision: 1.26 $
Author:
Alexander Kandzior
See Also:
Serialized Form

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
CmsJspTagContentShow()
           
 
Method Summary
static java.lang.String contentShowTagAction(I_CmsXmlContentContainer container, javax.servlet.jsp.PageContext context, java.lang.String element, java.util.Locale locale)
          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 setLocale(java.lang.String locale)
          Sets the locale.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Internal action method to show an element from a XML content document.

Parameters:
container - the content container to read the XML content from
context - the current JSP page context
element - the node name of the element to show
locale - the locale of the element to show
Returns:
the value of the selected content element

doEndTag

public int doEndTag()
See Also:
Tag.doEndTag()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
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()
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

setLocale

public void setLocale(java.lang.String locale)
Sets the locale.

Parameters:
locale - the locale to set