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

Struts2架构中的Commons-fileupload组件应用技术
引用本文:李静梅,王超宇. Struts2架构中的Commons-fileupload组件应用技术[J]. 应用科技, 2011, 38(4): 39-43. DOI: 10.3969/j.issn.1009-671X.2011.04.09
作者姓名:李静梅  王超宇
作者单位:哈尔滨工程大学,计算机科学与技术学院,黑龙江,哈尔滨,150001
摘    要:基于HTTP传输协议的Web网页中,采用嵌入Commons-fileup load组件的Struts2框架,实现了文件的上传与下载.利用OGNL表达式提取Session持久层中的文件名,并利用此文件名实现下载文件的动态更名.灵活利用struts2.0自身提供的字段类型,提高下载的鲁棒性.并列举实例体现整合技术和动态文件下载的实用性,最后通过与以往2种常用开发框架的对比数据加以验证说明.

关 键 词:上传下载  Struts2架构  Commons-fileupload组件  OGNL表达式

Applied technology of commons-fileupload component in Struts2 framework
LI Jingmei,WANG Chaoyu. Applied technology of commons-fileupload component in Struts2 framework[J]. Applied Science and Technology, 2011, 38(4): 39-43. DOI: 10.3969/j.issn.1009-671X.2011.04.09
Authors:LI Jingmei  WANG Chaoyu
Affiliation:LI Jingmei,WANG Chaoyu (College of Computer Science and Technology,Harbin Engineering University,Harbin 150001,China)
Abstract:In the web page based on Hypertext Transfer Protocol,Struts2 embedded with commons-fileupload component is adopted to carry out the file uploads and file downloads.OGNL is used to extract the file name in the Session persistence layer,and this extracted file name is used to realize the function of renaming the downloaded files dynamically.In order to enhance the robustness of procedure download,we make use of struts2.0's own field types flexibly.Meanwhile,some examples are provided to reflect the applicabil...
Keywords:upload and download  Struts2 framework  Commons-fileupload  OGNL expression  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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