Howdy,
Both errors are fairly clear and essentially the same.  You can't
forward or redirect a response that's been committed, i.e. written to.
If you're going to forward or redirect a response, you must do so before
writing to the response.  You can read the JavaDoc for
HttpServletResponse#sendRedirect and RequestDispatcher#forward.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 04, 2003 3:37 PM
>To: [EMAIL PROTECTED]
>Subject: forward error
>
>Hi,
>
>- If at the end of on of a jsp file, i put a <jsp:forward>, i have this
:
>java.lang.IllegalStateException: Error: Attempt to clear a buffer
that's
>already been flushed
>       at
>org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:
415)
>       at org.apache.jsp.test_ps_jsp._jspService(test_ps_jsp.java:448)
>       at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>       ...
>
>- if i put a <c:redirect>, i have this :
>java.lang.IllegalStateException
>       at
>org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpRespo
nseF
>acade.java:173)
>       at
>org.apache.taglibs.standard.tag.common.core.RedirectSupport.doEndTag(Re
dire
>ctSupport.java:151)
>       at
>org.apache.jsp.test_ps_jsp._jspx_meth_c_redirect_1(test_ps_jsp.java:123
3)
>       at org.apache.jsp.test_ps_jsp._jspService(test_ps_jsp.java:453)
>       ...
>
>- if i put nothing, i have no error ...
>
>sombdy can help me to understand this error ?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to