---
title: "用<html:file/> 文件上传功能实例和JSP Commons FileUpload 实例"
author: "wangsong76"
date: "2008-12-23T13:19:17Z"
tags: ["Eclipse", "HTML", "JSP", "Myeclipse", "Struts"]
categories: ["企业架构"]
slug: "html-file-jsp-commons-fileupload"
draft: false
lastmod: "2008-12-27T12:00:21Z"
id: 299745
url: "https://wangsong76.iteye.com/blog/299745"
---

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支持后，懒得去剔，将就着看吧反正没影响。
