tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler JspParseEventListener.java
Date Fri, 07 Apr 2000 00:43:55 GMT
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 {");
  
  
  

Mime
View raw message