[ http://issues.apache.org/jira/browse/VELTOOLS-22?page=all ]

Tim Colson moved VELOCITY-315 to VELTOOLS-22:
---------------------------------------------

      Project: VelocityTools  (was: Velocity)
          Key: VELTOOLS-22  (was: VELOCITY-315)
    Component:     (was: Tools)
      Version:     (was: 1.4)

> ImportSupport#ImportResponseWrapper#getWriter, getOutputStream resets on 
> every call
> -----------------------------------------------------------------------------------
>
>          Key: VELTOOLS-22
>          URL: http://issues.apache.org/jira/browse/VELTOOLS-22
>      Project: VelocityTools
>         Type: Bug
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Shinobu Kawai
>  Attachments: ImportSupport.patch
>
> In ImportSupport#ImportResponseWrapper, the methods getWriter() and 
> getOutputStream() will create a new StringWriter/ByteArrayOutputStream on 
> each 
> call, causing any content outputed to be reset.
> This can be reproduced by the following:
> bug.vm:
> $import.read("/servlet/bug.BugServlet")
> bug.BugServlet:
>   protected void doGet(HttpServletRequest request, HttpServletResponse 
> response)
>             throws ServletException, IOException
>   {
>     response.getWriter().println("First call to getWriter().");
>     response.getWriter().println("Second call to getWriter().");
>   }
> When you render bug.vm, you will see:
> Second call to getWriter().
> instead of the expected:
> First call to getWriter().
> Second call to getWriter().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to