You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/04/07 02:43:55 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler JspParseEventListener.java

craigmcc    00/04/06 17:43:55

  Modified:    src/share/org/apache/jasper/compiler
                        JspParseEventListener.java
  Log:
  Change the error trap at the bottom of a generated JSP page so that it
  calls out.clear() instead of out.clearBuffer() before handling the
  exception.  We don't really care that the response has been committed
  already -- what we care about is the exception and the traceback.
  
  Thanks for yet another patch Larry!
  
  PR:192
  Submitted by:	Larry.Isaacs@sas.com
  
  Revision  Changes    Path
  1.14      +6 -4      jakarta-tomcat/src/share/org/apache/jasper/compiler/JspParseEventListener.java
  
  Index: JspParseEventListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JspParseEventListener.java	2000/03/31 19:43:52	1.13
  +++ JspParseEventListener.java	2000/04/07 00:43:55	1.14
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v 1.13 2000/03/31 19:43:52 mandar Exp $
  - * $Revision: 1.13 $
  - * $Date: 2000/03/31 19:43:52 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v 1.14 2000/04/07 00:43:55 craigmcc Exp $
  + * $Revision: 1.14 $
  + * $Date: 2000/04/07 00:43:55 $
    *
    * ====================================================================
    * 
  @@ -329,7 +329,9 @@
   	writer.println("} catch (Exception ex) {");
   	writer.pushIndent();
           writer.println("if (out.getBufferSize() != 0)");
  -        writer.pushIndent(); writer.println("out.clear();"); writer.popIndent();
  +        writer.pushIndent();
  +	writer.println("out.clearBuffer();");
  +	writer.popIndent();
   	writer.println("pageContext.handlePageException(ex);");
   	writer.popIndent();
   	writer.println("} finally {");