commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meeraj Kunnumpurath <mkunnumpur...@googlemail.com>
Subject Re: JXPath Boolean Expressions
Date Fri, 02 Jul 2010 11:00:18 GMT
I think, I have the answer to my question. From a struct XPath perspective,
I guess the expression should be foo = true()


On Fri, Jul 2, 2010 at 11:28 AM, Meeraj Kunnumpurath <
mkunnumpurath@googlemail.com> wrote:

> 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