tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doremieux, Olivier" <Olivier.Doremi...@fc.celera.com>
Subject jsp:include & jsp:forward
Date Tue, 30 Jan 2001 23:19:48 GMT
Hello,

Is there some way to have a jsp:include & jsp:forward on the same page?

I am trying to write some code like that :

<HTML>
<HEAD>
<TITLE>
foo
</TITLE>
</HEAD>

<BODY bgcolor="#FFFFCE">
<jsp:include page="header.html" flush="true"/>
<BR><BR>
<CENTER><b>Updating the Database... Please Wait....Done.</b></CENTER>
<%
// Database Update here
}
%>
<jsp:forward page="/NextPage.jsp"/>
</BODY>
</HTML>


But I am getting the following error :

Error: 500
Location: /processTask0.jsp
Internal Servlet Error:

java.io.IOException: Error: Attempt to clear a buffer that's already been
flushed
	at
org.apache.jasper.runtime.JspWriterImpl.clear(JspWriterImpl.java:180)
	at
_0002fprocessTask_00030_0002ejspprocessTask0_jsp_2._jspService(_0002fprocess
Task_00030_0002ejspprocessTask0_jsp_2.java:90)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)


Any idea how to fix that?

Thank you,

-----------------------------
Olivier Doremieux
Senior Staff Engineer
Celera Applied Genomics
384 Foster City Blvd.,
Foster City, CA 94404
Tel: 650-554-2243
FAX: 650-638-6222
e-mail: odoremieux@fc.celera.com
----------------------------- 
  

Mime
View raw message