Class SetSupport
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.core.SetSupport
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public abstract class SetSupport extends javax.servlet.jsp.tagext.BodyTagSupport
Support for handlers of the <set> tag.
- Author:
- Shawn Bayern
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SetSupport()
Constructs a new handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
protected abstract String
evalProperty()
Evaluate the property attribute.protected abstract Object
evalTarget()
Evaluate the target attribute.protected abstract Object
evalValue()
Evaluate the value attribute.protected javax.el.ExpressionFactory
getExpressionFactory()
protected abstract boolean
isValueSpecified()
Indicates that the value attribute was specified.void
release()
void
setScope(String scope)
Scope for var.void
setVar(String var)
Name of the exported scoped variable to hold the value specified in the action.-
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
-
-
-
-
Method Detail
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.BodyTagSupport
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
isValueSpecified
protected abstract boolean isValueSpecified()
Indicates that the value attribute was specified. If no value attribute is supplied then the value is taken from the tag's body content.- Returns:
- true if the value attribute was specified
-
evalValue
protected abstract Object evalValue() throws javax.servlet.jsp.JspException
Evaluate the value attribute.- Returns:
- the result of evaluating the value attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
evalTarget
protected abstract Object evalTarget() throws javax.servlet.jsp.JspException
Evaluate the target attribute.- Returns:
- the result of evaluating the target attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
evalProperty
protected abstract String evalProperty() throws javax.servlet.jsp.JspException
Evaluate the property attribute.- Returns:
- the result of evaluating the property attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
getExpressionFactory
protected javax.el.ExpressionFactory getExpressionFactory()
-
setVar
public void setVar(String var)
Name of the exported scoped variable to hold the value specified in the action. The type of the scoped variable is whatever type the value expression evaluates to.- Parameters:
var
- name of the exported scoped variable
-
setScope
public void setScope(String scope)
Scope for var. Values are verified by TLV.- Parameters:
scope
- the variable scope
-
-