Hi All,

I was wondering if there was a way to determine if a given expression is valid 
for a particular type.
i.e. if the properties/methods specified actually exist.

Something along the lines of Ognl.isValidExpression(Root.class, 
"root.branch.leaf") 

e.g.

class Branch {
  public Leaf leaf;
}
class Root {
  public Branch branch;
}

Note that I don't need/want to pass in an instance to evaluate getValue on, I 
just want to know if "root.branch.leaf" is valid.
I tried passing in a new instance of the type but then I was getting the 
following error:

ognl.OgnlException: source is null for getProperty(null, "leaf")

Thanks,

Frank Grimes
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to