tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/servlet JspServlet.java
Date Thu, 09 Nov 2000 13:22:18 GMT
larryi      00/11/09 05:22:18

  Modified:    src/share/org/apache/jasper/servlet Tag: tomcat_32
                        JspServlet.java
  Log:
  Rethrow FileNotFoundException in case of IllegalStateException and
  hope that a higher routine can provide some handling for it.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.2   +9 -0      jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- JspServlet.java	2000/07/26 16:06:50	1.3.2.1
  +++ JspServlet.java	2000/11/09 13:22:17	1.3.2.2
  @@ -202,6 +202,15 @@
   						 ex.getMessage()
   					     }), ex,
   					    Logger.ERROR);
  +		    // rethrow FileNotFoundException so someone higher up can handle
  +                    if (insecure_TMI)
  +                        throw ex;
  +                    else
  +			throw new FileNotFoundException(Constants.getString
  +                                           ("jsp.error.file.not.found", 
  +                                            new Object[] {
  +                                                // Too Much Information -- ex.getMessage()
  +                                            }));
   		}
                   return;
               }
  
  
  

Mime
View raw message