You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Simon Buettner <si...@googlemail.com> on 2007/08/31 17:38:46 UTC

Passing parameters to a method with variable-length argument list

Hi everyone,
i want to call the following method with a variable-length argument list:
public String getMessage(String key, String ...values)

And this is the velocity template code:
$messageService.getMessage("start.index.welcome" , 
$userSession.user.firstName)

The template is parsed without any errors, but the method is not called. 
It just puts out:
$messageService.getMessage("start.index.welcome" , 
$userSession.user.firstName)

Best regards
Simon


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