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.BodyTagSupportSupport for handlers of the <set> tag.
- Author:
- Shawn Bayern
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSetSupport()Constructs a new handler.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intdoEndTag()protected abstract StringevalProperty()Evaluate the property attribute.protected abstract ObjectevalTarget()Evaluate the target attribute.protected abstract ObjectevalValue()Evaluate the value attribute.protected javax.el.ExpressionFactorygetExpressionFactory()protected abstract booleanisValueSpecified()Indicates that the value attribute was specified.voidrelease()voidsetScope(String scope)Scope for var.voidsetVar(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:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.BodyTagSupport
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin 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
-
-