tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets HTMLManagerServlet.java
Date Sat, 14 Jun 2003 02:07:46 GMT
billbarker    2003/06/13 19:07:46

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        HTMLManagerServlet.java
  Log:
  Update to use the commons-fileupload-rc1 interface.
  
  Submitted by: Martin Cooper martinc@apache.org
  
  Revision  Changes    Path
  1.16      +7 -7      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServlet.java
  
  Index: HTMLManagerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServlet.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- HTMLManagerServlet.java	13 Jan 2003 19:51:55 -0000	1.15
  +++ HTMLManagerServlet.java	14 Jun 2003 02:07:46 -0000	1.16
  @@ -84,7 +84,7 @@
   import org.apache.catalina.Host;
   import org.apache.catalina.util.ServerInfo;
   import org.apache.commons.fileupload.FileItem;
  -import org.apache.commons.fileupload.FileUpload;
  +import org.apache.commons.fileupload.DiskFileUpload;
   import org.apache.commons.fileupload.FileUploadException;
   
   /**
  @@ -195,7 +195,7 @@
           String message = "";
   
           // Create a new file upload handler
  -        FileUpload upload = new FileUpload();
  +        DiskFileUpload upload = new DiskFileUpload();
   
           // Get the tempdir
           File tempdir = (File) getServletContext().getAttribute
  @@ -259,7 +259,7 @@
                           ("htmlManagerServlet.installUploadWarExists",war);
                       break;
                   }
  -                warUpload.write(file.getCanonicalPath());
  +                warUpload.write(file);
                   try {
                       URL url = file.toURL();
                       war = url.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message