Using JRun, jsp 1.0 on NT I have the following problem:
I have a JSP page that invokes beans that return results (Vectors)
The JSP page then formats and displays the results. OK so far.
Inside one bean I would like to invoke a third party report
writer that generates an html file (it takes an OutputStream as
a parameter which I get by calling response.getOutputStream()).
The report displays OK but then I get the following error:
JRun Servlet Error
java.lang.IllegalStateException: Already called getOutputStream()
from the error log:
Wed Jan 26 10:00:15 EST 2000: JRun Properties Dir:
C:\JRun\jsm-default\services\jse\properties
Wed Jan 26 10:04:26 EST 2000: Running servlet
{ (Running servlet) java.lang.IllegalStateException: Already called
getOutputStream()
at
com.livesoftware.jrun.JRunServletResponse.getWriter(JRunServletResponse.java
:150)
at com.livesoftware.jsp.JRunJspWriter.flush(JRunJspWriter.java:188)
at jsp.fsgcorba4._jspService(Compiled Code)
at
com.livesoftware.jsp.HttpJSPServlet.service(HttpJSPServlet.java:31)
at com.livesoftware.jsp.JSPServlet.service(JSPServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
at
com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
at
com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java:78)
at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JR
unProxyServiceHandler.java:102)
at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
Code)
}
I would like to alternate between using the report writer to generate HTML
(by grabbing the
outputStream) and letting JSP do output. - Any ideas ?
:scott
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html