Class SetTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.core.SetSupport
-
- org.apache.taglibs.standard.tag.el.core.SetTag
-
- 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 class SetTag extends SetSupport
JSTL 1.0 compatible version of <set> that accepts expressions for attribute values.- Author:
- Shawn Bayern
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
evalProperty()
Evaluate the property attribute.protected Object
evalTarget()
Evaluate the target attribute.protected Object
evalValue()
Evaluate the value attribute.protected boolean
isValueSpecified()
Indicates that the value attribute was specified.void
release()
void
setProperty(String property)
void
setTarget(String target)
void
setValue(String value)
-
Methods inherited from class org.apache.taglibs.standard.tag.common.core.SetSupport
doEndTag, getExpressionFactory, setScope, setVar
-
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
-
setValue
public void setValue(String value)
-
setTarget
public void setTarget(String target)
-
setProperty
public void setProperty(String property)
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classSetSupport
-
isValueSpecified
protected boolean isValueSpecified()
Description copied from class:SetSupport
Indicates that the value attribute was specified. If no value attribute is supplied then the value is taken from the tag's body content.- Specified by:
isValueSpecified
in classSetSupport
- Returns:
- true if the value attribute was specified
-
evalValue
protected Object evalValue() throws javax.servlet.jsp.JspException
Description copied from class:SetSupport
Evaluate the value attribute.- Specified by:
evalValue
in classSetSupport
- Returns:
- the result of evaluating the value attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
evalTarget
protected Object evalTarget() throws javax.servlet.jsp.JspException
Description copied from class:SetSupport
Evaluate the target attribute.- Specified by:
evalTarget
in classSetSupport
- Returns:
- the result of evaluating the target attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
evalProperty
protected String evalProperty() throws javax.servlet.jsp.JspException
Description copied from class:SetSupport
Evaluate the property attribute.- Specified by:
evalProperty
in classSetSupport
- Returns:
- the result of evaluating the property attribute
- Throws:
javax.servlet.jsp.JspException
- if there was a problem evaluating the expression
-
-