A ok, I see !
That works brilliantly! Thanks very much for the assistance.
Simon.
-Original Message-
From: Shinobu Kawai [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 10, 2004 9:50 PM
To: Velocity Users List
Subject: Re: Newbie 2D array question
Hi Simon,
> Thanks for
Hi Simon,
> Thanks for the suggestion. I'm still a little confused ... you suggested
> making a list of arrays, but looking at your example template this looks
> like I would need an array of lists. Have I got it back to front ?
No, I meant a List of arrays.
> #foreach($name in $names)
> $name
>
Kawai [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 09, 2004 5:43 PM
To: Velocity Users List
Subject: Re: Newbie 2D array question
Unfortunately, Velocity doesn't do well with arrays (yet?). if you make the
3x3 array a List of arrays, you can do the following:
#foreach($name in $names)
$name
#
Hi Simon,
> I have a question regarding formatting a vector list and a 2 dimensional
> array in a table. I have done a lot of searching on the web and in the
> archive and have come up empty handed.
>
> Here is a simple example of what I'm trying to achieve ..
>
> In my servlet I have a vector,
I have a question regarding formatting a vector list and a 2 dimensional
array in a table. I have done a lot of searching on the web and in the
archive and have come up empty handed.
Here is a simple example of what I'm trying to achieve ..
In my servlet I have a vector, called names, containing