Commits

Anonymous committed 68528c8

use the specified writer OR the pageContext

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@546573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/views/jsp/ui/template/VelocityTemplateEngine.java

                 (HttpServletResponse) pageContext.getResponse());
 
         Writer outputWriter = (Writer) ActionContext.getContext().get(AbstractTagDirective.VELOCITY_WRITER);
+        if (outputWriter == null) {
+            outputWriter = pageContext.getOut();
+        }
 
         // Make the OGNL stack available to the velocityEngine templates.
         // todo Consider putting all the VelocityServlet Context values in