Package org.opencms.jsp
Class CmsJspTagParam
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspTagParam
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
A handler for <param> that accepts attributes as Strings
and evaluates them as expressions at runtime.
- Since:
- 6.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanThere used to be an 'encode' attribute; I've left this as a vestige in case custom subclasses want to use our functionality but NOT encode parameters.protected StringThe name of the parameter.protected StringThe value of the parameter.Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
m_encode
There used to be an 'encode' attribute; I've left this as a vestige in case custom subclasses want to use our functionality but NOT encode parameters. -
m_name
The name of the parameter. -
m_value
The value of the parameter.
-
-
Constructor Details
-
CmsJspTagParam
public CmsJspTagParam()Public constructor.
-
-
Method Details
-
doEndTag
Simply send our name and value to our appropriate ancestor.- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException- (never thrown, required by interface)
-
release
Releases any resources we may have (or inherit).- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.BodyTagSupport
-
setName
Sets the attribute name.- Parameters:
name- the name to set
-
setValue
Sets the attribute value.- Parameters:
value- the name to set
-