期刊文献+

Struts2架构中的Commons-fileupload组件应用技术

Applied technology of commons-fileupload component in Struts2 framework
下载PDF
导出
摘要 基于HTTP传输协议的Web网页中,采用嵌入Commons-fileup load组件的Struts2框架,实现了文件的上传与下载.利用OGNL表达式提取Session持久层中的文件名,并利用此文件名实现下载文件的动态更名.灵活利用struts2.0自身提供的字段类型,提高下载的鲁棒性.并列举实例体现整合技术和动态文件下载的实用性,最后通过与以往2种常用开发框架的对比数据加以验证说明. 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 applicability of the integrated technology and dynamic file download.Finally,the applicability is verified through comparing data with two previous common frameworks.
出处 《应用科技》 CAS 2011年第4期39-43,共5页 Applied Science and Technology
关键词 上传下载 Struts2架构 Commons-fileupload组件 OGNL表达式 upload and download Struts2 framework Commons-fileupload OGNL expression
  • 相关文献

参考文献3

二级参考文献15

  • 1程洪,钱乐秋,马舜雄.基于J2EE体系的Web应用框架整合[J].计算机工程,2005,31(20):96-98. 被引量:12
  • 2官全龙,姚国祥.基于Struts的应用架构的研究[J].计算机工程与设计,2005,26(12):3225-3227. 被引量:22
  • 3GREG VOSS. Java Beans: Introducing Java Beans[EB/OL]. 1996 [2004-5-20]. http: //java. sun. com/developer/on-lineTraining/Beans/Beans1/.
  • 4IETF. Hypertext Transfer Protocol-HTTP/1.1, [EB/OL]. [2004-3-1]. http: //www. ietf. org/rfe/rfcl867, txt? number = 1867.
  • 5IETF. Form-based File Upload in HTML [ EB/OL]. 1995 [2004-3-1]. http: //www. ieff.org/rfe/rfc2616, txt? number =2616, 1995.
  • 6apache. apache-commons-fileupload-1.0 doc[EB/OL]. [2004-4-12]. http: //jakarta. apache.org/commons/fileupload/apidocs/index, html.
  • 7JAMES W COOPER. The Design Patterns Java Companion[ R]. [ S. l. ] : IBM Thomas J Watson Research Center, 1998:104-107.
  • 8ALAN SHALLOWAY, JAMES R TROTY. Design Patterns Explained: A New Perspective on Object-Oriented Design[M].[S. l. ] : Addison-Wesley, 2001 : 25-29.
  • 9GAMMA E, HELM R, JOHNSON R, VLISSIDES J. Design Patterns-Elements of Reusable Object-Oriented Software[M].[S. l. ] : Addison-Wesley, 1995.
  • 10GLEB NAUMOVICH. Using the Observer Design Pattern for Implementation of Data Flow Analyses[J]. ACM SIGSOFT Software Engineering Notes, 2004, 25 ( 1 ) : 20-19.

共引文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部