类 EvalTag

  • 所有已实现的接口:
    Serializable, IterationTag, JspTag, Tag, TryCatchFinally

    public class EvalTag
    extends HtmlEscapingAwareTag
    The <eval> tag evaluates a Spring expression (SpEL) and either prints the result or assigns it to a variable. Supports the standard JSP evaluation context consisting of implicit variables and scoped attributes.
    Attribute Summary
    AttributeRequired?Runtime Expression?Description
    expressiontruetrueThe expression to evaluate.
    htmlEscapefalsetrueSet HTML escaping for this tag, as a boolean value. Overrides the default HTML escaping setting for the current page.
    javaScriptEscapefalsetrueSet JavaScript escaping for this tag, as a boolean value. Default is false.
    scopefalsetrueThe scope for the var. 'application', 'session', 'request' and 'page' scopes are supported. Defaults to page scope. This attribute has no effect unless the var attribute is also defined.
    varfalsetrueThe name of the variable to export the evaluation result to. If not specified the evaluation result is converted to a String and written as output.
    从以下版本开始:
    3.0.1
    作者:
    Keith Donald, Juergen Hoeller
    另请参阅:
    序列化表格