You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Mike Williams <mi...@cortexebusiness.com.au> on 2001/10/29 04:33:38 UTC
list-index operator
Does Velocity have a list-index operator? It want to display the first
element of an array (or a Collection), but
$someArray[0]
doesn't work. Is this is an intentional omission?
--
cheers, Mike
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: list-index operator
Posted by Dan Bachelder <ch...@chowda.net>.
if you can use a collection do $myCollection.get(0)
----- Original Message -----
From: "Mike Williams" <mi...@cortexebusiness.com.au>
To: <ve...@jakarta.apache.org>
Sent: Sunday, October 28, 2001 10:33 PM
Subject: list-index operator
> Does Velocity have a list-index operator? It want to display the first
> element of an array (or a Collection), but
>
> $someArray[0]
>
> doesn't work. Is this is an intentional omission?
>
> --
> cheers, Mike
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>