src/main/java/ognl/Ognl.java
public static Object getValue(String expression, Object root, Class resultType)
            throws OgnlException
    {
        return getValue(parseExpression(expression), root, resultType);
    }
public static Object getValue(String expression, Object root, Class resultType)
            throws OgnlException
    {
        return getValue(parseExpression(expression), root, resultType);
    }
public static Object getValue ( String expression , Object root , Class resultType ) throws OgnlException { return getValue ( parseExpression ( expression ) , root , resultType ) ; }
Convenience method that combines calls to <code> parseExpression </code> and
<code> getValue</code>.

@see #parseExpression(String)
@see #getValue(Object,Object)
@param expression
the OGNL expression to be parsed
@param root
the root object for the OGNL expression
@param resultType
the converted type of the resultant object, using the context's type converter
@return the result of evaluating the expression
@throws ExpressionSyntaxException
if the expression is malformed
@throws MethodFailedException
if the expression called a method which failed
@throws NoSuchPropertyException
if the expression referred to a nonexistent property
@throws InappropriateExpressionException
if the expression can't be used in this context
@throws OgnlException
if there is a pathological environmental problem
Convenience method that combines calls to <code > parseExpression < / code > and <code > getValue< / code > .