Hi jvz:
For example, I have a table display all the product in store. If there are only 1
product, the table will be ugly looking. I may want to add 20 - n blank line to
make the display better.
Of cause I can send a 20 -n vectory to velocity. But this brings the "View "part
into my servlet application. If there are some loop function in velocity, we can make
the code more clean.
Regards
fanyun
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jason van Zyl
Sent: Tuesday, December 26, 2000 11:44 PM
To: Turbine
Subject: Re: How to loop using Velocity
On Tue, 26 Dec 2000, fanyun wrote:
> Hi:
>
> I want have a loop in *.vm files. But I checked Velocity's document, I find the
>only way to loop is using "#foreach". Anybody knows how to do a loop in Velocity?
>
#foreach is currently the only looping construct in velocity.
What are you trying to do ?
jvz.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
�˛���m�n���z���p��"�h��(�:.�˛���m�n���z�ߖ+-�x��d�j�!��i��0�f���܆+�r����ۊw��X��
+�)�v�,r��>��鬎��"�h��(