public abstract class SetSupport
extends javax.servlet.jsp.tagext.BodyTagSupport
Support for handlers of the <set> tag.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
scope |
private java.lang.String |
var |
| Modifier | Constructor and Description |
|---|---|
protected |
SetSupport()
Constructs a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Object |
convertToExpectedType(java.lang.Object value,
java.lang.reflect.Method m)
Convert an object to an expected type of the method parameter according to the conversion
rules of the Expression Language.
|
int |
doEndTag() |
protected abstract java.lang.String |
evalProperty()
Evaluate the property attribute.
|
protected abstract java.lang.Object |
evalTarget()
Evaluate the target attribute.
|
protected abstract java.lang.Object |
evalValue()
Evaluate the value attribute.
|
(package private) void |
exportToBeanProperty(java.lang.Object target,
java.lang.String property,
java.lang.Object result)
Export the result into a bean property.
|
(package private) void |
exportToMapProperty(java.lang.Object target,
java.lang.String property,
java.lang.Object result)
Export the result into a Map.
|
(package private) void |
exportToVariable(java.lang.Object result)
Export the result into a scoped variable.
|
protected javax.el.ExpressionFactory |
getExpressionFactory() |
(package private) java.lang.Object |
getResult() |
protected abstract boolean |
isValueSpecified()
Indicates that the value attribute was specified.
|
void |
release() |
void |
setScope(java.lang.String scope)
Scope for var.
|
void |
setVar(java.lang.String var)
Name of the exported scoped variable to hold the value specified in the action.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected SetSupport()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionjava.lang.Object getResult()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected abstract boolean isValueSpecified()
protected abstract java.lang.Object evalValue()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionprotected abstract java.lang.Object evalTarget()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionprotected abstract java.lang.String evalProperty()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if there was a problem evaluating the expressionvoid exportToVariable(java.lang.Object result)
throws javax.servlet.jsp.JspTagException
result - the value to exportjavax.servlet.jsp.JspTagException - if there was a problem exporting the resultvoid exportToMapProperty(java.lang.Object target,
java.lang.String property,
java.lang.Object result)
target - the Map to export intoproperty - the key to export intoresult - the value to exportvoid exportToBeanProperty(java.lang.Object target,
java.lang.String property,
java.lang.Object result)
throws javax.servlet.jsp.JspTagException
target - the bean to export intoproperty - the bean property to setresult - the value to exportjavax.servlet.jsp.JspTagException - if there was a problem exporting the resultprivate java.lang.Object convertToExpectedType(java.lang.Object value,
java.lang.reflect.Method m)
throws javax.el.ELException
value - the value to convertm - the setter methodjavax.el.ELException - if there was a problem coercing the valueprotected javax.el.ExpressionFactory getExpressionFactory()
public void setVar(java.lang.String var)
var - name of the exported scoped variablepublic void setScope(java.lang.String scope)
scope - the variable scope