[ 
https://issues.apache.org/struts/browse/WW-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42454
 ] 

Rod commented on WW-1789:
-------------------------

This is really really simple to fix in the struts code, both on the 2.0.x 
branch and the current trunk (pre 2.1).
Line 193 of 
http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
 should be changed from:
            chained.setToolbox(toolboxManager.getToolboxContext(chained));
to
            chained.setToolbox(toolboxManager.getToolbox(chained));
And that's it. Maven dependencies ( 
http://svn.apache.org/repos/asf/struts/struts2/trunk/core/pom.xml ) should be 
updated to velocity 1.5 and velocity-tools 1.3 and everything works perfectly.

So, you can roll your own struts for either 2.0.x or trunk and that's all you 
need to do to be using the latest velocity... Or someone could commit the 
changes to the trunk.

> VelocityResult can not work with VelocityTools 1.3
> --------------------------------------------------
>
>                 Key: WW-1789
>                 URL: https://issues.apache.org/struts/browse/WW-1789
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Views
>    Affects Versions: 2.0.6
>            Reporter: xiaoheng
>             Fix For: 2.1.0
>
>
> in VelocityManager.java line 194 (struts 2.0.6)
> toolboxManager.getToolboxContext method was removed in VelocityTools 1.3, and 
> it's deprecated in VelocityTools 1.2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to