Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Error involving <jsp:forward> :buffer getting clear

Zulekha Banu

2004-12-07

Replies:

Hi
I m trying to forward from a controller jsp to a JSP page from where the
control is again transferred to the controller jsp from here again to a new
jsp and so on.
The code looks like this:

control.jsp:
-------------

if(ch==1){
....
...
<jsp:forward page=test1.jsp />
}
if(ch==2){
....
...
<jsp:forward page=test2.jsp />
}
...
..

It works fine for the first forward to test1.jsp but after that throws the
following error:

java.io.IOException: "Error: Attempt to clear a buffer that's already been
flushed"
at java.io.IOException.(IOException.java:49)
at com.sun.jsp.runtime.JspWriterImpl.clear(JspWriterImpl.java:125)
    .....

I have tried setting the page buffer and set autoflush property also to
false, still the problem persists.

If You have any idea please share..

Thanks
Zulekha

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.