You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Manish <pr...@gmx.net> on 2008/08/07 09:26:20 UTC

Nested for loops & velocityCount

If I have nestted for loops in my VTL page, how do I refer to our velocityCount 
inside the inner loop?

TIA,
- Manish 



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


Re: Nested for loops & velocityCount

Posted by Adrian Tarau <ad...@intellisoftsystems.com>.
Manish,

You have to store the outside loop velocityCount in a different 
variable, or there is a tool to help you with loops :  
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/LoopTool.html 


Manish wrote:
> If I have nestted for loops in my VTL page, how do I refer to our 
> velocityCount inside the inner loop?
>
> TIA,
> - Manish
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>


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