Hi. I am trying to include some html from an external file in a JSP
page, but I keep getting an error. The code I am using is,
<jsp:include page="include_elements/pgtop.htm" flush="true" />
When I attempt to access the JSP page from a browser, it comes up with
the text in the external file, but then directly below that is an error
message and none of the other elements of the JSP page are printed after that.
Has anyone seen this behavior before?
I am using Tomcat 3.1.
Thanks,
Ethan
Here is the actual error message
java.lang.IllegalStateException: OutputStream is already being used for
this request
at org.apache.tomcat.core.ResponseImpl.getWriter(ResponseImpl.java:210)
at
org.apache.tomcat.core.HttpServletResponseFacade.getWriter(HttpServletResponseFacade.java:148)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:154)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:146)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:191)
at
grant_0005fapp._0002fgrant_0005fapp_0002fregister_00032_0002ejspregister2_jsp_19._jspService(_0002fgrant_0005fapp_0002fregister_00032_0002ejspregister2_jsp_19.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)
===========================================
Ethan Michaels
Graphics Department
METROPOLITAN TRANSPORTATION COMMISSION
Transportation planning, financing, and
coordinating for the San Francisco Bay Area
http://www.mtc.ca.gov/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets