commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <>
Subject [Jelly] inconsistency in boolean handling
Date Sun, 29 Jun 2003 20:41:13 GMT

I have a variable in the context that is a String and has a value of
"true". Using <j:if/> and <j:when/> yield different results.

If ${value} is set to "true" :

<j:if test="${value}"> evaluates to false and the body doesn't run.


<j:when test="${value}"> evaluates to true and the body runs.

Before each of these blocks I am echoing the value of ${value} and it
appears to be "true". From the source they they look like they are
evaluated the same yet I am getting different results?

Anyone know of any oddities with boolean evaluation?


Jason van Zyl

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  -- Jacques Ellul, The Technological Society

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message