public final class EvalHelper
extends java.lang.Object
evaluateExpressions
method of each
Tag class. It is used to process the original attribute value through the
JSTL EL engine to produce an evaluated value. It provides functions to
evaluate the expression assuming it is an Object, String, Integer, or
Boolean result.Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
eval(java.lang.String attrName,
java.lang.String attrValue,
javax.servlet.jsp.tagext.Tag tagObject,
javax.servlet.jsp.PageContext pageContext)
Evaluates the attribute value in the JSTL EL engine, returning the raw
Object value of the evaluated expression.
|
static java.lang.Boolean |
evalBoolean(java.lang.String attrName,
java.lang.String attrValue,
javax.servlet.jsp.tagext.Tag tagObject,
javax.servlet.jsp.PageContext pageContext)
Evaluates the attribute value in the JSTL EL engine, assuming the
resulting value is an Boolean object.
|
static java.lang.Integer |
evalInteger(java.lang.String attrName,
java.lang.String attrValue,
javax.servlet.jsp.tagext.Tag tagObject,
javax.servlet.jsp.PageContext pageContext)
Evaluates the attribute value in the JSTL EL engine, assuming the
resulting value is an Integer object.
|
static java.lang.String |
evalString(java.lang.String attrName,
java.lang.String attrValue,
javax.servlet.jsp.tagext.Tag tagObject,
javax.servlet.jsp.PageContext pageContext)
Evaluates the attribute value in the JSTL EL engine, assuming the
resulting value is a String object.
|
public static java.lang.Object eval(java.lang.String attrName, java.lang.String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.String evalString(java.lang.String attrName, java.lang.String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.Integer evalInteger(java.lang.String attrName, java.lang.String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.Boolean evalBoolean(java.lang.String attrName, java.lang.String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.