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:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CmsJspTagParam extends javax.servlet.jsp.tagext.BodyTagSupport
A handler for <param> that accepts attributes as Strings and evaluates them as expressions at runtime.- Since:
- 6.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
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.protected java.lang.String
m_name
The name of the parameter.protected java.lang.String
m_value
The value of the parameter.
-
Constructor Summary
Constructors Constructor Description CmsJspTagParam()
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
Simply send our name and value to our appropriate ancestor.void
release()
Releases any resources we may have (or inherit).void
setName(java.lang.String name)
Sets the attribute name.void
setValue(java.lang.String value)
Sets the attribute value.-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Field Detail
-
m_encode
protected boolean 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
protected java.lang.String m_name
The name of the parameter.
-
m_value
protected java.lang.String m_value
The value of the parameter.
-
-
Constructor Detail
-
CmsJspTagParam
public CmsJspTagParam()
Public constructor.
-
-
Method Detail
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
Simply send our name and value to our appropriate ancestor.- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
- (never thrown, required by interface)
-
release
public void release()
Releases any resources we may have (or inherit).- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.BodyTagSupport
-
setName
public void setName(java.lang.String name)
Sets the attribute name.- Parameters:
name
- the name to set
-
setValue
public void setValue(java.lang.String value)
Sets the attribute value.- Parameters:
value
- the name to set
-
-