public static Object getValue ( Object exp , Map ctx , Object root , String path , int lineNumber ) { try { OgnlContext context = new OgnlContext ( null , null , new DefaultMemberAccess ( true ) ) ; return Ognl . getValue ( exp , context , root ) ; } catch ( OgnlException ex ) { throw new OgnlRuntimeException ( ex . getReason ( ) == null ? ex : ex . getReason ( ) , path , lineNumber ) ; } catch ( Exception ex ) { throw new OgnlRuntimeException ( ex , path , lineNumber ) ; } }
Returns the value using the OGNL expression the root object a context mpa a path and a line number .