You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by rjain <rj...@yahoo.com> on 2006/11/10 15:43:50 UTC

Define Arraylist

How do I define a new arraylist and add items to the arraylist in Velocity

I am looking at something 

#set( $myArray = [""] ) ## Empty ArrayList
$myArray.put("Item 1")
$myArray.put("Item 2")

regards
Rajesh

-- 
View this message in context: http://www.nabble.com/Define-Arraylist-tf2608110.html#a7278200
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org