资源简介

Java中使用Ajax、Jquery带进度条文件上传,需要的下吧,忙了我一个下午噢,累死了。

资源截图

代码片段和文件信息

package com.hongfei.entity;

public class Upload {
private long totalSize; //总大小
private long startTime = System.currentTimeMillis(); //开始时间
private long uploadSize; //已上传的大小
public long getTotalSize() {
return totalSize;
}
public void setTotalSize(long totalSize) {
this.totalSize = totalSize;
}
public long getStartTime() {
return startTime;
}
public void setStartTime(long startTime) {
this.startTime = startTime;
}
public long getUploadSize() {
return uploadSize;
}
public void setUploadSize(long uploadSize) {
this.uploadSize = uploadSize;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        528  2011-12-20 16:15  Upload\.classpath

     文件        291  2011-12-20 16:15  Upload\.mymetadata

     文件       1412  2011-12-20 16:16  Upload\.project

     文件        500  2011-12-20 16:15  Upload\.settings\.jsdtscope

     文件        330  2011-12-20 16:15  Upload\.settings\org.eclipse.jdt.core.prefs

     文件         49  2011-12-20 16:15  Upload\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2011-12-20 16:15  Upload\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        632  2011-12-20 14:54  Upload\src\com\hongfei\entity\Upload.java

     文件        506  2011-12-20 14:57  Upload\src\com\hongfei\lister\UploadLister.java

     文件       3425  2011-12-20 16:52  Upload\src\com\hongfei\servlet\AjaxServlet.java

     文件       4638  2011-12-20 17:36  Upload\src\com\hongfei\servlet\Upload.java

     文件     248235  2011-12-20 12:02  Upload\WebRoot\js\jquery-1.7.1.js

     文件         36  2011-12-20 16:15  Upload\WebRoot\meta-INF\MANIFEST.MF

     文件       2558  2011-12-20 17:35  Upload\WebRoot\upload.jsp

     文件        959  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei\entity\Upload.class

     文件        734  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei\lister\UploadLister.class

     文件       3153  2011-12-20 16:52  Upload\WebRoot\WEB-INF\classes\com\hongfei\servlet\AjaxServlet.class

     文件       4557  2011-12-20 17:36  Upload\WebRoot\WEB-INF\classes\com\hongfei\servlet\Upload.class

     文件      59590  2011-12-20 12:08  Upload\WebRoot\WEB-INF\lib\commons-fileupload-1.2.2.jar

     文件     159509  2011-12-20 12:08  Upload\WebRoot\WEB-INF\lib\commons-io-2.0.1.jar

     文件        938  2011-12-20 15:11  Upload\WebRoot\WEB-INF\web.xml

     目录          0  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei\entity

     目录          0  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei\lister

     目录          0  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei\servlet

     目录          0  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com\hongfei

     目录          0  2011-12-20 14:53  Upload\src\com\hongfei\entity

     目录          0  2011-12-20 14:54  Upload\src\com\hongfei\lister

     目录          0  2011-12-20 14:57  Upload\src\com\hongfei\servlet

     目录          0  2011-12-20 16:15  Upload\WebRoot\WEB-INF\classes\com

     目录          0  2011-12-20 16:12  Upload\src\com\hongfei

............此处省略15个文件信息

评论

共有 条评论