public class

EvalTag

extends HtmlEscapingAwareTag
java.lang.Object
   ↳ TagSupport
     ↳ org.springframework.web.servlet.tags.RequestContextAwareTag
       ↳ org.springframework.web.servlet.tags.HtmlEscapingAwareTag
         ↳ org.springframework.web.servlet.tags.EvalTag

Class Overview

JSP tag for evaluating expressions with the Spring Expression Language (SpEL). Supports the standard JSP evaluation context consisting of implicit variables and scoped attributes.

Summary

[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.RequestContextAwareTag
[Expand]
Inherited Fields
From class org.springframework.web.servlet.tags.RequestContextAwareTag
Public Constructors
EvalTag()
Public Methods
int doEndTag()
int doStartTagInternal()
Called by doStartTag to perform the actual work.
void setExpression(String expression)
Set the expression to evaluate.
void setJavaScriptEscape(String 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.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
From class java.lang.Object

Public Constructors

public EvalTag ()

Public Methods

public int doEndTag ()

Throws
JspException

public int doStartTagInternal ()

Called by doStartTag to perform the actual work.

Returns
  • same as TagSupport.doStartTag
Throws
JspException

public void setExpression (String expression)

Set the expression to evaluate.

public void setJavaScriptEscape (String javaScriptEscape)

Set JavaScript escaping for this tag, as boolean value. Default is "false".

Throws
JspException

public void setScope (String scope)

Set the scope to export the evaluation result to. This attribute has no meaning unless var is also defined.

public void setVar (String var)

Set the variable name to expose the evaluation result under. Defaults to rendering the result to the current JspWriter.