[
https://issues.apache.org/jira/browse/VELOCITY-651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654736#action_12654736
]
Stephan Schmid commented on VELOCITY-651:
-----------------------------------------
Now, it works as expected :-)
Thanks for your great work!
> Velocity 1.6 does not work with Struts MessageTool 1.4
> ------------------------------------------------------
>
> Key: VELOCITY-651
> URL: https://issues.apache.org/jira/browse/VELOCITY-651
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6
> Environment: Velocity 1.6, Struts MessageTool 1.4, Struts 1.2.9, Java
> 1.6_10
> Reporter: Stephan Schmid
> Fix For: 1.6.1, 1.7
>
>
> The org.apache.velocity.tools.struts.MessageTool of VelocityTools version 1.4
> contains a method signature of String get(String key, Object args[]).
> With Velocity 1.5, one could use a Struts resource, such as
> test1=this is a {0}
> in a Velocity template with
> $text.get('test1', ['TEST'])
> that would render the text
> this is a TEST
> Unfortunately, since the released version 1.6 I get the following exception:
> Invocation of method 'get' in class
> org.apache.velocity.tools.struts.MessageTool threw exception
> java.lang.IllegalArgumentException: wrong number of arguments at ..
> The setting of the property runtime.references.strict has no influence.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]