velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: Referencing arrays
Date Mon, 15 Nov 2004 23:20:31 GMT
Steve O'Hara <> wrote:
> I'm trying to reference a 2 dimensional array of strings using the 
>             <td valign="top">$Results[0][$velocityCount]</td>
> Unfortunately I just get [[Ljava.lang.String;@1684e26[0][x] where x is the
> $velocityCount.

Array notation is not part of the Velocity Template Language.

You can download Shinobu Kawai's ArrayTool to add support for arrays, or you 
can create your own custom tool.

I played around with ArrayTool earlier today, and it seems to work fine.

$array.get($array.get($Results, 0), $velocityCount)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message