You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Ro...@ptb.de on 2005/08/12 10:27:28 UTC

a simple for loop, how?

I need something like "c:forEach" but without an existing list or array
structure. The loop should be executed a known number like the for loop in
Java or C. What is the best solution using tag libs? Thanks in advance.

...Rolf


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


Re: a simple for loop, how?

Posted by Eugeny N Dzhurinsky <eu...@jdevelop.com>.
On Fri, Aug 12, 2005 at 02:07:49PM +0530, Ranendra wrote:
> <c:forEach begin="0" end="10" step="1">
> </c:forEach>
> that should be all right...
> cheers

I think he should need the varStatus as well
<c:forEach begin="0" end="10" step="1" varStatus="it">
iteration : ${it.count}
</c:forEach>

-- 
Eugene N Dzhurinsky

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


Re: a simple for loop, how?

Posted by Ro...@ptb.de.
Thanks for the answers. I know my question was stupid ;-(

...Rolf



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


RE: a simple for loop, how?

Posted by Ranendra <rn...@camo.com>.
<c:forEach begin="0" end="10" step="1">
</c:forEach>


that should be all right...
cheers

-----Original Message-----
From: Rolf.Niepraschk@ptb.de [mailto:Rolf.Niepraschk@ptb.de] 
Sent: Friday, August 12, 2005 1:57 PM
To: Tag Libraries Users List
Subject: a simple for loop, how?


I need something like "c:forEach" but without an existing list or array
structure. The loop should be executed a known number like the for loop in
Java or C. What is the best solution using tag libs? Thanks in advance.

...Rolf


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


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