public class TransformTag extends HtmlEscapingAwareTag
spring:bind tag (or a data-bound
form element tag from Spring's form tag library).
The BindTag has a PropertyEditor that it uses to transform properties of a bean to a String, usable in HTML forms. This tag uses that PropertyEditor to transform objects passed into this tag.
BindTag,
Serialized Formlogger, REQUEST_CONTEXT_PAGE_ATTRIBUTEid, pageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
TransformTag() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doStartTagInternal()
Called by doStartTag to perform the actual work.
|
void |
setScope(String scope)
Set the scope to export the variable to.
|
void |
setValue(Object value)
Set the value to transform, using the appropriate PropertyEditor
from the enclosing BindTag.
|
void |
setVar(String var)
Set PageContext attribute name under which to expose
a variable that contains the result of the transformation.
|
isDefaultHtmlEscape, isHtmlEscape, setHtmlEscapedoCatch, doFinally, doStartTag, getRequestContextdoAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValuepublic void setValue(Object value)
The value can either be a plain value to transform (a hard-coded String value in a JSP or a JSP expression), or a JSP EL expression to be evaluated (transforming the result of the expression).
public void setVar(String var)
public void setScope(String scope)
setVar(java.lang.String),
TagUtils.SCOPE_PAGE,
JspContext.setAttribute(java.lang.String, java.lang.Object)protected final int doStartTagInternal()
throws JspException
RequestContextAwareTagdoStartTagInternal in class RequestContextAwareTagJspExceptionTagSupport.doStartTag()