On Apr 19, 2011, at 4:24 PM, $e$hu wrote:
> can any one tell me about how to write for loop in groovy.I ahve
> written like this.
>
> %{ for( reservations.size() >0 && reservations.size()<= 40) { }%
> some thing .......
> %{ } }%
I dont really get what you want to do... Simply counting up a list?
This is how you would do this:
#{list 1..20, as:'i' }
${i}
#{/list}
Feel free to explain if I didnt get you right..
--Alexander