You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jason Crickmer <ja...@jedi.net> on 2001/07/09 21:31:48 UTC
VTL array subscripts
This is probably more for velocity-users, but... :)
Let's say I add an String array to the context for a page. I can
easily do something like this:
<ol>
#foreach ($item in $list)
<li>$item</li>
#end
</ol>
But, I can't do any of these?
$list.length
$list[0]
$list.get(0)
$list.elementAt(0)
I thought I read in the documentation that all lists in VTL (Vectors,
ArrayLists, etc...) could operate with the get(int) method like in
List, but I guess that doesn't apply to arrays?
Thanks,
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org