ITeye博客

用<html:file/> 文件上传功能实例和JSP Commons FileUpload 实例

wangsong76 · 2008-12-23 13:19 · struts · 企业架构 · HTML · Myeclipse · Eclipse · Struts · JSP · Markdown

struts_file.rar 工程见附件。 说明: 1、工程为Eclipse 3.2,tomcate 5.5,JDK1.5; 2、在myeclipse struts config editor 里面是无法在Design添加formbean的,只能在Source中写入formbean; 3、上传的文件路径在WebRoot下。 4、Struts Configuration 1.2

补充JSP Commons FileUpload 组件上传文件实例FileUpload.rar,并对比上传效率。

FileUpload.rar工程见附件。 说明: 1、工程为Eclipse 3.2,tomcate 5.5,JDK1.5; 2、上传的文件路径在WebRoot/upLoad 3、工程里面加入了struts,其实这个工程从头到尾都没用到struts,没有剔除struts的原因是,我误点了添加struts支持后,懒得去剔,将就着看吧反正没影响。

评论(2)

  1. #2 楼 · wangsong76 · 2008-12-23 22:20

    没见过,Struts 下载包中自带了Upload实例。

  2. #1 楼 · hantsy · 2008-12-23 16:16

    Struts 下载包中自带了Upload实例。

评论功能维护中,当前仅展示历史评论。