类 EvalTag
- java.lang.Object
- javax.servlet.jsp.tagext.TagSupport
- org.springframework.web.servlet.tags.RequestContextAwareTag
- org.springframework.web.servlet.tags.HtmlEscapingAwareTag
- org.springframework.web.servlet.tags.EvalTag
- 所有已实现的接口:
Serializable
,IterationTag
,JspTag
,Tag
,TryCatchFinally
public class EvalTag extends HtmlEscapingAwareTag
JSP tag for evaluating expressions with the Spring Expression Language (SpEL). Supports the standard JSP evaluation context consisting of implicit variables and scoped attributes.- 从以下版本开始:
- 3.0.1
- 作者:
- Keith Donald, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
从类继承的字段 javax.servlet.jsp.tagext.TagSupport
id, pageContext
从接口继承的字段 javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
从接口继承的字段 javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
构造器概要
构造器 构造器 说明 EvalTag()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
doEndTag()
int
doStartTagInternal()
Called by doStartTag to perform the actual work.void
setExpression(String expression)
Set the expression to evaluate.void
setJavaScriptEscape(boolean javaScriptEscape)
Set JavaScript escaping for this tag, as boolean value.void
setScope(String scope)
Set the scope to export the evaluation result to.void
setVar(String var)
Set the variable name to expose the evaluation result under.从类继承的方法 org.springframework.web.servlet.tags.HtmlEscapingAwareTag
htmlEscape, isDefaultHtmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscape
从类继承的方法 org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doFinally, doStartTag, getRequestContext
从类继承的方法 javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
构造器详细资料
EvalTag
public EvalTag()
方法详细资料
setExpression
public void setExpression(String expression)
Set the expression to evaluate.
setVar
public void setVar(String var)
Set the variable name to expose the evaluation result under. Defaults to rendering the result to the current JspWriter.
setScope
public void setScope(String scope)
Set the scope to export the evaluation result to. This attribute has no meaning unless var is also defined.
setJavaScriptEscape
public void setJavaScriptEscape(boolean javaScriptEscape) throws JspException
Set JavaScript escaping for this tag, as boolean value. Default is "false".- 抛出:
JspException
doStartTagInternal
public int doStartTagInternal() throws JspException
从类复制的说明:RequestContextAwareTag
Called by doStartTag to perform the actual work.- 指定者:
doStartTagInternal
在类中RequestContextAwareTag
- 返回:
- same as TagSupport.doStartTag
- 抛出:
JspException
- 另请参阅:
TagSupport.doStartTag()
doEndTag
public int doEndTag() throws JspException
- 指定者:
doEndTag
在接口中Tag
- 覆盖:
doEndTag
在类中TagSupport
- 抛出:
JspException