cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <>
Subject COCOON-1978
Date Wed, 03 Oct 2007 09:32:27 GMT

this pure JEXL code:

// mistaken variable name
String jexlExp = "fuu";

org.apache.commons.jexl.Expression expression = 

// Create a context and add data
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );

// Now evaluate the expression, getting the result
Object o = expression.evaluate(jc);

System.out.println( o );

actually produces "null" when no foo variable is found in context 
instead of throwing. JEXL javadoc does not show any direct method to 
change this behaviour. Is there anything we can do?

Leszek Gawron               
CTO at MobileBox Ltd.

View raw message