org.opencms.jsp
Class CmsJspTagInfo

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.opencms.jsp.CmsJspTagInfo
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class CmsJspTagInfo
extends javax.servlet.jsp.tagext.TagSupport

Provides access to OpenCms and System related information.

This tag supports the following special "property" values:

All other property values that are passes to the tag as routed to a standard System.getProperty(value) call, so you can also get information about the Java VM environment, using values like java.vm.version or os.name.

If the given property value does not match a key from the special OpenCms values and also not the system values, a (String) message is returned with a formatted error message.

Since:
6.0.0
Version:
$Revision: 1.28 $
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
CmsJspTagInfo()
           
 
Method Summary
 int doStartTag()
           
 java.lang.String getProperty()
          Returns the selected info property.
static java.lang.String infoTagAction(java.lang.String property, javax.servlet.http.HttpServletRequest req)
          Returns the selected info property value based on the provided parameters.
 void release()
           
 void setProperty(java.lang.String name)
          Sets the info property name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

CmsJspTagInfo

public CmsJspTagInfo()
Method Detail

infoTagAction

public static java.lang.String infoTagAction(java.lang.String property,
                                             javax.servlet.http.HttpServletRequest req)
Returns the selected info property value based on the provided parameters.

Parameters:
property - the info property to look up
req - the currents request
Returns:
the looked up property value

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

getProperty

public java.lang.String getProperty()
Returns the selected info property.

Returns:
the selected info property

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
See Also:
Tag.release()

setProperty

public void setProperty(java.lang.String name)
Sets the info property name.

Parameters:
name - the info property name to set