commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Howlett" <howl...@cadence.com>
Subject RE: jellt tag, problems with comparision operator
Date Fri, 26 Sep 2003 02:56:30 GMT
Hi,

Your example works for me exactly as you have provided it.

What version of Jelly are you using? (I am using one built
from the CVS head).

> -----Original Message-----
> From: Agarwal, Manish [mailto:Manish.Agarwal.ctr@sabre.com] 
> Sent: Thursday, September 25, 2003 6:35 PM
> To: commons-user@jakarta.apache.org
> Subject: jellt tag, problems with comparision operator
> 
> 
> HI!
> 
> I am writing piece of script :
> 
> 	<j:set var="k" value="0"/>
> 	<j:set var="m" value="10"/>
> 
> 	<j:while test="${k &lt; m}">
> 		<log:info>Print the value of k :${k}:</log:info>
> 		<j:set var="k" value="${k+1}"/>
> 	</j:while>
> 
> This doesn't work, it throws exception:
>     [junit] Caught exception evaluating: 
> org.apache.commons.jexl.ExpressionImpl@
> 5f8172. Reason: java.lang.Exception: Invalid comparison : LT
>     [junit] java.lang.Exception: Invalid comparison : LT
> 
> On the other hand a comparision like ${2 &lt; 3} works. It 
> seems like using variables with jexl gives problem in case of 
> &lt; operator.
> 
> 
> Has anyone faced this yet?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message