Description: 基于JSP的文件上传管理系统,对学习JSP有帮助.不是太复杂-JSP-based document management system to upload, to learn JSP help. Not too complex Platform: |
Size: 20480 |
Author:猫猫 |
Hits:
Description: javabean开发的jsp上传文件,支持多文件上传-javabean development jsp upload documents to support more file uploads Platform: |
Size: 121856 |
Author:七月天 |
Hits:
Description: 带进度条的文件上传(java+ajax源码)
在写代码的时候,还要用到关于servlet的包servlet-api.jar。
写完后调试的过程中,老报错:java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream,后来一查才知道少了commons-io-1.2.jar,加上后,就ok了。
关于获取及显示进度部分,用了我原来自己写的一个ajax的应用架构,从中抽取了部分代码出来,注意,js文件只适用于UTF-8编码的页面,因为现在我只写UTF-8编码的页面了,国际化方便。
progressUpload.jar中,包含了commons-fileupload-1.1.1.jar,servlet-api.jar,commons-io-1.2.jar,在progressUpload.jar中,还包含一个属性文件,里面是一些默认配置,可根据自己的需要修改。
由于有源码,怎么用可以自己看源码,此外,那个例子中也写了,在此不再赘述。例子中只取到了FileItem,再将item保存一下就ok了,示例代码: File upFile = new File(remoteFilePath)
try
\{
item.write(upFile)
fileInfo.put("infotip", "上传成功.")
}
catch (java.lang.Exception e)
\{
fileInfo.put("infotip", "上传失败.")
}-with the progress of the file upload (java ajax OSS) in writing code, also used on packages servlet servlet-api.jar. After the finish debugging process, the old errors : java.lang.NoClassDefFoundError : org/apache/commons/io/output/DeferredFil eOutputStream. Later, an investigation will know less commons-io- 1.2.jar, plus, on the ok. On access and display some progress with my own original written by a ajax application architectures, from taking part code, and the attention js document only applies to UTF-8 encoded pages. now I just write UTF-8 encoded pages, international convenience. ProgressUpload.jar, contains commons- fileupload- 1.1.1.jar. servlet-api.jar, commons-io- 1.2.jar. In progressUpload.jar, also includes an attribute documents, There is some of the default conf Platform: |
Size: 577536 |
Author:商务通 |
Hits:
Description: java上传文件的源代码,通过htm页面Post给jsp或者servlet.-Upload file java source code, through the htm page Post to jsp or servlet. Platform: |
Size: 1105920 |
Author:duan |
Hits:
Description: java 的上传功能很强大的实施上述事实上说是-java upload feature is very powerful implementation of the above are actually SAY Platform: |
Size: 756736 |
Author:张三 |
Hits:
Description: 添加struts框架的支持,目的是使用其中的commons-fileupload.jar包中的上传功能。
编写两个servlet,分别实现文件的上传和下载功能
-Adding support struts framework, the purpose is to use one of the commons-fileupload.jar package upload. Write two servlet, respectively, for file upload and download Platform: |
Size: 1428480 |
Author:孟爽 |
Hits:
Description: 一个.jar包,里面包含通用的上传下载,直接调用实现功能。-A.Jar package, which contains the general upload download, realize the function of direct call. Platform: |
Size: 60416 |
Author:黄艳艳 |
Hits:
Description: 此文件为java开发jar包,如有不对请联系我,我会作出修正(This file develops the jar package for Java. If there is something wrong, please contact me, I will make some corrections.) Platform: |
Size: 1177600 |
Author:凉凉薄雨 |
Hits: