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 RE: jsp:include & jsp:forward
Date Wed, 31 Jan 2001 16:36:06 GMT
I don't think the flush=false is allow.

The think is we have some pages with some templates, that's why we have the
jsp:include, but after some processing in the jsp page we want to redirect
to a new page. We are just trying to do a "please wait" page.

That's all.

Olivier

-----Original Message-----
From: Jai Shankar Prasad Pankaj [mailto:jai.shankar@wipro.com]
Sent: Wednesday, January 31, 2001 12:48 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: jsp:include & jsp:forward


I think u cannot do that. u start by asking the jsp engine
to write something into the buffer and then u are changing  ur mind by
asking it to go to some other jsp page. This is not allowed.

May be u can try using flush=false. But i am bit skeptical about this. Let
me know if it works.

Jai.








----- Original Message -----
From: "Doremieux, Olivier" <Olivier.Doremieux@fc.celera.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, January 31, 2001 4:49 AM
Subject: jsp:include & jsp:forward


> 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
> -----------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message