commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc DEXET <Marc.De...@dsi.cnrs.fr>
Subject RE : jelly core:while
Date Tue, 21 Jun 2005 13:08:12 GMT

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message