| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Convenience methods for easy access to the JSP Expression Language evaluator of Jakarta's JSTL implementation.
The evaluation methods check if the value contains "${" before invoking the EL evaluator, treating the value as "normal" expression (i.e. conventional String) else.
Note: The evaluation methods do not have a runtime dependency on Jakarta's JSTL implementation, as long as they don't receive actual EL expressions.
| Method Summary | |
static Object | evaluate(String attrName, String attrValue, Class resultClass, PageContext pageContext)Evaluate the given expression to an Object, be it EL or a conventional String. |
static boolean | evaluateBoolean(String attrName, String attrValue, PageContext pageContext)Evaluate the given expression to a boolean, be it EL or a conventional String. |
static int | evaluateInteger(String attrName, String attrValue, PageContext pageContext)Evaluate the given expression to an integer, be it EL or a conventional String. |
static String | evaluateString(String attrName, String attrValue, PageContext pageContext)Evaluate the given expression to a String, be it EL or a conventional String. |
static boolean | isExpressionLanguage(String value)Check if the given expression value is an EL expression. |
| Method Detail |
public static Object evaluate(String attrName, String attrValue, Class resultClass, PageContext pageContext)
throws JspException
public static boolean evaluateBoolean(String attrName, String attrValue, PageContext pageContext)
throws JspException
public static int evaluateInteger(String attrName, String attrValue, PageContext pageContext)
throws JspException
public static String evaluateString(String attrName, String attrValue, PageContext pageContext)
throws JspException
public static boolean isExpressionLanguage(String value)
true if the expression is an EL expression,
false otherwise
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||