diff --git a/core/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java b/core/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java index ba3171ea5..59d6743f0 100644 --- a/core/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java +++ b/core/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java @@ -190,7 +190,7 @@ public class VelocityManager { } if (toolboxManager != null && ctx != null) { - ChainedContext chained = new ChainedContext(context, req, res, ctx); + ChainedContext chained = new ChainedContext(context, velocityEngine, req, res, ctx); chained.setToolbox(toolboxManager.getToolbox(chained)); return chained; } else {