commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meeraj Kunnumpurath <mkunnumpur...@googlemail.com>
Subject JXPath Boolean Expressions
Date Fri, 02 Jul 2010 10:28:59 GMT
Hi,

I have the following snippet to evaluate a boolean expression from a map,

Map<String, Object> map = new HashMap<String, Object>();
map.put("foo", false);
System.err.println(JXPathContext.newContext(map).getValue("foo = false"));

The above seems to be printing false instead of true.

Kind regards
Meeraj

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message