Class ExpressionUtil
- java.lang.Object
-
- org.apache.taglibs.standard.tag.el.core.ExpressionUtil
-
public class ExpressionUtil extends Object
Contains some static utilities to facilitate common forms of expression evaluation.
- Author:
- Shawn Bayern
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
evalNotNull(String tagName, String attributeName, String expression, 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 Object evalNotNull(String tagName, String attributeName, String expression, Class expectedType, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
Evaluates 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
-
-