You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Ken Gilmer (Created) (JIRA)" <ji...@apache.org> on 2011/12/11 07:03:40 UTC

[jira] [Created] (FELIX-3266) PrintWriter in HttpServletResponse does not send string content to client

PrintWriter in HttpServletResponse does not send string content to client
-------------------------------------------------------------------------

                 Key: FELIX-3266
                 URL: https://issues.apache.org/jira/browse/FELIX-3266
             Project: Felix
          Issue Type: Bug
          Components: Lightweight HTTP Service
            Reporter: Ken Gilmer



The following snippet will fail to send "Hello" to HTTP client:

       protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		resp.getWriter().print("Hello");
	}

Only resp.getOutputStream() will work in version 0.1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (FELIX-3266) PrintWriter in HttpServletResponse does not send string content to client

Posted by "Ken Gilmer (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Gilmer resolved FELIX-3266.
-------------------------------

    Resolution: Fixed
      Assignee: Ken Gilmer
    
> PrintWriter in HttpServletResponse does not send string content to client
> -------------------------------------------------------------------------
>
>                 Key: FELIX-3266
>                 URL: https://issues.apache.org/jira/browse/FELIX-3266
>             Project: Felix
>          Issue Type: Bug
>          Components: Lightweight HTTP Service
>            Reporter: Ken Gilmer
>            Assignee: Ken Gilmer
>
> The following snippet will fail to send "Hello" to HTTP client:
>        protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
> 		resp.getWriter().print("Hello");
> 	}
> Only resp.getOutputStream() will work in version 0.1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira