marcsaeg    01/01/05 10:07:22

  Modified:    src/share/org/apache/jasper/compiler Tag: tomcat_32
                        JspCompiler.java
  Log:
  Added test to isOutDated() to check for the existence of the JSP page in
  addtion to checking the timestamps.  If the JSP page has been removed
  a 404 error is returned to the client and the associated .class file
  is removed.
  PR: 698
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.14.2.3  +5 -1      
jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java
  
  Index: JspCompiler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java,v
  retrieving revision 1.14.2.2
  retrieving revision 1.14.2.3
  diff -u -r1.14.2.2 -r1.14.2.3
  --- JspCompiler.java  2000/11/16 22:10:35     1.14.2.2
  +++ JspCompiler.java  2001/01/05 18:07:21     1.14.2.3
  @@ -310,7 +310,11 @@
   
           jspReal = new File(realPath);
   
  -        File classFile = new File(getClassFileName());
  +               if(!jspReal.exists()){
  +                       return true;
  +               }
  +
  +               File classFile = new File(getClassFileName());
           if (classFile.exists()) {
               outDated = classFile.lastModified() < jspReal.lastModified();
           } else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to