tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler ParserController.java
Date Fri, 06 Oct 2000 00:34:05 GMT
pierred     00/10/05 17:34:01

  Modified:    jasper/src/share/org/apache/jasper/compiler
                        ParserController.java
  Log:
  The resource path provided in the FileNotFoundException
  is now the proper context-relative resource path
  (so our 404 will be exactly as it should be when a jsp file
  is not found).
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/ParserController.java
  
  Index: ParserController.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/ParserController.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ParserController.java	2000/10/05 23:38:13	1.3
  +++ ParserController.java	2000/10/06 00:34:00	1.4
  @@ -411,10 +411,10 @@
   		in = new FileInputStream(file);
   		reader = new InputStreamReader(in, encoding);
   	    } else {
  -		String fileName = ctxt.getRealPath(file.toString());
  +		//String fileName = ctxt.getRealPath(file.toString());
   		in = ctxt.getResourceAsStream(file.toString());
   		if (in == null) {
  -		    throw new FileNotFoundException(file.toString());
  +		    throw new FileNotFoundException(currentFileName);
   		}
   		reader = new InputStreamReader(in, encoding);
   	    }
  
  
  

Mime
View raw message