Package org.apache.taglibs.standard.util
Class ExpressionUtil
- java.lang.Object
-
- org.apache.taglibs.standard.util.ExpressionUtil
-
public class ExpressionUtil extends java.lang.Object
Helper functions for working with EL expressions.
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.el.ValueExpression
createValueExpression(javax.servlet.jsp.PageContext pageContext, java.lang.String expression, java.lang.Class<?> expectedType)
Create a value expression.static javax.el.ExpressionFactory
getExpressionFactory(javax.servlet.jsp.PageContext pageContext)
Return the JSP's ExpressionFactory.
-
-
-
Method Detail
-
createValueExpression
public static javax.el.ValueExpression createValueExpression(javax.servlet.jsp.PageContext pageContext, java.lang.String expression, java.lang.Class<?> expectedType)
Create a value expression.- Parameters:
pageContext
- the context in which the expression will be parsedexpression
- the expressionexpectedType
- the expected type of result- Returns:
- a parsed expression
-
getExpressionFactory
public static javax.el.ExpressionFactory getExpressionFactory(javax.servlet.jsp.PageContext pageContext)
Return the JSP's ExpressionFactory.- Parameters:
pageContext
- the context for the JSP- Returns:
- the ExpressionFactory to use for EL expressions in that JSP
-
-