首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于HTTP文件上传进度显示组件的设计及实现
引用本文:段旭光,李岚,董立岩,臧雪柏.基于HTTP文件上传进度显示组件的设计及实现[J].吉林大学学报(信息科学版),2006,24(1):89-93.
作者姓名:段旭光  李岚  董立岩  臧雪柏
作者单位:1. 湖南大学,软件学院,长沙,410082
2. 吉林大学,计算机科学与技术学院,长春,130012
基金项目:吉林省自然科学基金资助项目(20030522-1)
摘    要:基于HTTP(Hypertext Transfer Protocol)的Java文件上传组件,由于受HTTP协议及浏览器的约束和限制,都没能实现文件上传过程中进度显示的功能,仅实现了对文件上传的管理。针对现存服务器端上传组件不能显示进度的问题,通过对广泛应用的apache-commons-fileup load-1.0文件上传组件的原理及源码的研究,使用Java语言,以W eb应用服务器为环境,采用MVC(ModelV iew Controller)模式构建整体结构,运用Fac-tory,Decorator,Observer,Strategy,DAO(Data Advanced Ob ject)等模式实现组件内部控制,采用只与浏览器相关的脚本语言HTML,JAVASCR IPT,XMLHTTP等客户端显示技术,设计并实现了一种扩展性强、稳定、灵活、可定制的文件上传进度显示组件。

关 键 词:文件上传  显示进度  超文本传输协议  Java语言
文章编号:1671-5896(2006)01-0089-05
修稿时间:2005年4月4日

Progress Displaying File Upload Package Based on HTTP Protocol and Its Implementation
DUAN Xu-guang,LI Lan,DONG Li-yan,ZANG Xue-bai.Progress Displaying File Upload Package Based on HTTP Protocol and Its Implementation[J].Journal of Jilin University:Information Sci Ed,2006,24(1):89-93.
Authors:DUAN Xu-guang  LI Lan  DONG Li-yan  ZANG Xue-bai
Abstract:The traditional file upload packages based on HTTP(Hypertext Transfer Protocol) protocol cannot display the progress in the course.The principle and source code of apache-commons-fileupload-1.0 package were analyzed,the method is designed and implemented in Java for Web applications.The architecture of the package is built in MVC(Model View Controller) pattern.The controller layer is designed in some patterns such as Factory,Decorator,Observer,Strategy,DAO(Data Advanced Object) and etc.The view layer is separated from controller,and it is implemented using HTML,JAVASCRIPT and XMLHTTP related with browser.Therefore,the whole package is expandable,steady,flexible and easily customized.
Keywords:file upload  progress displaying  hypertext transfer protocol(HTTP)  Java
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号