日期:2014-05-17  浏览次数:20521 次

用<html:file/> 文件上传功能实例和JSP Commons FileUpload 实例
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支持后,懒得去剔,将就着看吧反正没影响。
1 楼 hantsy 2008-12-23  
Struts 下载包中自带了Upload实例。
2 楼 wangsong76 2008-12-23  
没见过,Struts 下载包中自带了Upload实例。