markt 2004/03/19 10:59:24 Modified: jasper2/src/share/org/apache/jasper/runtime JspWriterImpl.java Log: - Fix bug 13499 (again). If page output is unbuffered, illegal state exception is no longer thrown on forward if and only if nothing has been written to the page. The ise will still be thrown on forward if there has been any unbuffered output (JSP.5.5) Revision Changes Path 1.12 +2 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java Index: JspWriterImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- JspWriterImpl.java 19 Mar 2004 17:36:12 -0000 1.11 +++ JspWriterImpl.java 19 Mar 2004 18:59:24 -0000 1.12 @@ -139,7 +139,8 @@ * Discard the output buffer. */ public final void clear() throws IOException { - if (bufferSize == 0) + if ((bufferSize == 0) && (out != null)) + // clear() is illegal after any unbuffered output (JSP.5.5) throw new IllegalStateException( getLocalizeMessage("jsp.error.ise_on_clear")); if (flushed)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]