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.rt.core.SetTag
-
- 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 SetTag extends SetSupport
JSTL 1.1 compatible version of <set> that accepts expression results for attribute values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringpropertyprivate java.lang.Objecttargetprivate java.lang.Objectvalueprivate booleanvalueSpecified
-
Constructor Summary
Constructors Constructor Description SetTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringevalProperty()Evaluate the property attribute.protected java.lang.ObjectevalTarget()Evaluate the target attribute.protected java.lang.ObjectevalValue()Evaluate the value attribute.protected booleanisValueSpecified()Indicates that the value attribute was specified.voidrelease()voidsetProperty(java.lang.String property)voidsetTarget(java.lang.Object target)voidsetValue(java.lang.Object 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(java.lang.Object value)
-
setTarget
public void setTarget(java.lang.Object target)
-
setProperty
public void setProperty(java.lang.String property)
-
release
public void release()
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classSetSupport
-
isValueSpecified
protected boolean isValueSpecified()
Description copied from class:SetSupportIndicates 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:
isValueSpecifiedin classSetSupport- Returns:
- true if the value attribute was specified
-
evalValue
protected java.lang.Object evalValue()
Description copied from class:SetSupportEvaluate the value attribute.- Specified by:
evalValuein classSetSupport- Returns:
- the result of evaluating the value attribute
-
evalTarget
protected java.lang.Object evalTarget()
Description copied from class:SetSupportEvaluate the target attribute.- Specified by:
evalTargetin classSetSupport- Returns:
- the result of evaluating the target attribute
-
evalProperty
protected java.lang.String evalProperty()
Description copied from class:SetSupportEvaluate the property attribute.- Specified by:
evalPropertyin classSetSupport- Returns:
- the result of evaluating the property attribute
-
-