public final class EvalHelper extends 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 Object |
eval(String attrName,
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 Boolean |
evalBoolean(String attrName,
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 Integer |
evalInteger(String attrName,
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 String |
evalString(String attrName,
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 Object eval(String attrName, String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static String evalString(String attrName, String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static Integer evalInteger(String attrName, String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static Boolean evalBoolean(String attrName, String attrValue, javax.servlet.jsp.tagext.Tag tagObject, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.