commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Reich <rei...@gmail.com>
Subject Re: RE : jelly core:while
Date Tue, 21 Jun 2005 13:16:07 GMT
Thanks, but i have exception:

[jmln-test-vm] Jun 21, 2005 5:14:40 PM
org.apache.commons.jelly.expression.jexl.JexlExpression evaluate
[jmln-test-vm] WARNING: Caught exception evaluating:
org.apache.commons.jexl.ExpressionImpl@3bb2b8. Reason:
java.lang.Exception: Invalid comparison : LT
[jmln-test-vm] java.lang.Exception: Invalid comparison : LT 
[jmln-test-vm] 	at
org.apache.commons.jexl.parser.ASTLTNode.value(ASTLTNode.java:105)



On 6/21/05, Marc DEXET <Marc.Dexet@dsi.cnrs.fr> wrote:
> 
> > -----Message d'origine-----
> > De : Pavel Reich [mailto:reichp@gmail.com]
> > Envoyé : mardi 21 juin 2005 14:59
> > À : commons-user@jakarta.apache.org
> > Objet : jelly core:while
> >
> >
> > Some questions regarding
> > http://jakarta.apache.org/commons/jelly/ project.
> > I use jelly for jameleon tests.
> > Does anybody know, how to organize loop with core:while?
> > For example, count from 1 to 10 and print it.
> > http://jakarta.apache.org/commons/jelly/tags.html documentation is
> > very short and haven't any examples.
> 
> <j:jelly xmlns:j="jelly:core">
>         <j:set var="c" value="0"/>
>         <j:while test="${c lt 10}">
>                 I'am equal to ${c}
>                 <j:set var="c" value="${c+1}"/>
>         </j:while>
> </j:jelly>
> 
> Direct from my left neuron (right is sleeping).
> It would be correct.
> 
> --
> Marc DeXeT
> CNRS/DSI/BEST
> <http://www.dsi.cnrs.fr>
> 
>

---------------------------------------------------------------------
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