logo       

Passing in an array as a Java function argument?: msg#00123

jakarta.velocity.user

Subject: Passing in an array as a Java function argument?

Is there a way in velocity to pass in an array list defined in Velocity as a function parameter?

For example, can I have:

#set ($arr = ["blah", "blah", "blah"])
#set ($result = $tool.foo($arr))

?

If I can do the aboved, what's the signature of the "foo" function of the tool instance $tool? Is it List, ArrayList, Object[], String[], or something else?

--
William Lee (Will) | Sendmail Inc.
Email: wlee@xxxxxxxxxxxx | http://www.sendmail.com
Tel: (510) 594-5505 |


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise