1. opensymphony
  2. webwork

Commits

mbogaert  committed 5632fa7

Fixed in the correct way. GetOutputStream is not called, so should be ok.

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

  • Participants
  • Parent commits 0d8c34e
  • Branches master

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java

View file
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
-import java.io.OutputStreamWriter;
 import java.io.Writer;
 import java.util.Locale;
 
     }
 
     /**
-     * the default writer writes directly to the response output stream
+     * The default writer writes directly to the response writer.
      */
     protected Writer getWriter() throws IOException {
-        return new OutputStreamWriter(
-                ServletActionContext.getResponse().getOutputStream(),
-                ServletActionContext.getResponse().getCharacterEncoding()
-        );
+        return ServletActionContext.getResponse().getWriter();
     }
 
     /**