velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@apache.org>
Subject Re: What happened to 'default.contentType' property?
Date Thu, 22 Mar 2001 16:44:16 GMT
??sta? Ste????? wrote:
> 
> OK, thanks.
> Just another question (something that is also seem broken from the 0.71
> ver).
> 
> I have a method that accepts an Object[] as an argument. (e.g. do(Object[]
> param))
> When I use VTL to access this method, I write:
> 
> $someobject.do(["astring", "onemore"])
> or
> $someobject.do([])
> to pass an empty Object array.
> This does not seem to work with ver. 1.0 byt with 0.71 it was ok.

You must change the signature of you method to do(ArrayList).
We changed how the [..] operator works: what is listed inside the
[..] operator is now turned into an ArrayList as opposed to an Object[].

-- 
jvz.

Jason van Zyl
jvanzyl@periapt.com

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

Mime
View raw message