jelly core:while

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jelly core:while

Pavel Reich
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: jelly core:while

Paul Libbrecht
How about the following ?
<?xml version="1.0" encoding="utf-8"?>
<j:jelly xmlns:j="jelly:core">
        <j:forEach indexVar="i" begin="0" end="10" step="1">
                Step ${i}.
                </j:forEach>
    </j:jelly>

   Careful that it runs till 10 included.

paul

Le 21 juin 05, à 14:59, Pavel Reich a écrit :

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]