You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/24 08:47:58 UTC

DO NOT REPLY [Bug 6000] New: - getOutputStream function can't be used inside JSP page

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6000>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6000

getOutputStream  function can't be used inside JSP page

           Summary: getOutputStream  function can't be used inside JSP page
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: frederic.vanclef@ucb-group.com


Hello,


I want to use a jsp page to retrieve binary data.

here is the code of the jsp page : 
<%@ page language="java" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="transform" scope="page" class="transform.Transform"/>
<%    
    OutputStream out1 = response.getOutputStream();
%>
 
and here is the message I receive from the Server.

Error: 500
Location: /activities/jsp/transform.jsp
Erreur interne de servlet:

java.lang.IllegalStateException: getOutputStream() a d�j� �t� appel�
	at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(Unknown 
Source)
	at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
	at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source)
	at jsp.transform_11._jspService(transform_11.java:111)
	at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
	at org.apache.tomcat.core.Handler.invoke(Unknown Source)
	at org.apache.tomcat.core.Handler.service(Unknown Source)
	at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
	at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
	at org.apache.tomcat.modules.server.Http10Interceptor.processConnection
(Unknown Source)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
	at java.lang.Thread.run(Thread.java:484)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>