tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@locus.apache.org
Subject cvs commit: jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/servlets DefaultServlet.java
Date Sat, 05 Aug 2000 02:29:36 GMT
remm        00/08/04 19:29:35

  Modified:    proposals/catalina/src/share/org/apache/tomcat/servlets
                        DefaultServlet.java
  Log:
  - Check to see whether or not a resource existed was broken
  
  Revision  Changes    Path
  1.18      +6 -10     jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/servlets/DefaultServlet.java
  
  Index: DefaultServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/servlets/DefaultServlet.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DefaultServlet.java	2000/08/01 07:19:39	1.17
  +++ DefaultServlet.java	2000/08/05 02:29:35	1.18
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/servlets/DefaultServlet.java,v
1.17 2000/08/01 07:19:39 remm Exp $
  - * $Revision: 1.17 $
  - * $Date: 2000/08/01 07:19:39 $
  + * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/servlets/DefaultServlet.java,v
1.18 2000/08/05 02:29:35 remm Exp $
  + * $Revision: 1.18 $
  + * $Date: 2000/08/05 02:29:35 $
    *
    * ====================================================================
    *
  @@ -108,7 +108,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.17 $ $Date: 2000/08/01 07:19:39 $
  + * @version $Revision: 1.18 $ $Date: 2000/08/05 02:29:35 $
    */
   
   public class DefaultServlet
  @@ -681,7 +681,7 @@
   	int len = buffer.length;
   	while (true) {
   	    try {
  -		len = istream.read(buffer);
  +                len = istream.read(buffer);
                   if (len == -1)
                       break;
                   ostream.write(buffer, 0, len);
  @@ -1143,11 +1143,7 @@
               
               this.path = path;
               this.resources = resources;
  -            try {
  -                this.exists = (resources.getResource(path) != null);
  -            } catch (MalformedURLException e) {
  -                this.exists = false;
  -            }
  +            this.exists = resources.exists(path);
               if (exists) {
                   this.creationDate = resources.getResourceCreated(path);
                   this.date = resources.getResourceModified(path);
  
  
  

Mime
View raw message