public final class ExpressionLanguageUtil extends Object
JSTLVariableResolver
Modifier and Type | Method and Description |
---|---|
static String |
evaluateExpressionLanguage(String expression,
Map<?,?> context)
Helper-Function to evaluate a Expression to a String.
|
static Object |
evaluateExpressionLanguage(String expression,
Map<?,?> context,
Class<?> returnType)
Helper-Function to evaluate a Expression to a given Class.
|
public static String evaluateExpressionLanguage(String expression, Map<?,?> context) throws org.apache.taglibs.standard.lang.jstl.ELException
expression
- The Expression to be evaluatedcontext
- The context where the expression has Accessorg.apache.taglibs.standard.lang.jstl.ELException
- Throw an Exception if the expression is not valid.public static Object evaluateExpressionLanguage(String expression, Map<?,?> context, Class<?> returnType) throws org.apache.taglibs.standard.lang.jstl.ELException
expression
- The Expression to be evaluatedcontext
- The context where the expression has AccessreturnType
- the Class-Object who will be returnedorg.apache.taglibs.standard.lang.jstl.ELException
- Throw an Exception if the expression is not valid.Copyright © 2008–2016 Brabenetz Harald, Austria. All rights reserved.