Class ExpressionUtil
- java.lang.Object
-
- org.apache.taglibs.standard.tag.el.core.ExpressionUtil
-
public class ExpressionUtil extends java.lang.ObjectContains some static utilities to facilitate common forms of expression evaluation.
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectevalNotNull(java.lang.String tagName, java.lang.String attributeName, java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext pageContext)Evaluates an expression if present, but does not allow the expression to evaluate to 'null', throwing a NullAttributeException if it does.
-
-
-
Method Detail
-
evalNotNull
public static java.lang.Object evalNotNull(java.lang.String tagName, java.lang.String attributeName, java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspExceptionEvaluates an expression if present, but does not allow the expression to evaluate to 'null', throwing a NullAttributeException if it does. The function can return null, however, if the expression itself is null.- Throws:
javax.servlet.jsp.JspException
-
-