a) 设置文件上传属性在Action中对应的类型的java.io.File;
b) 设置文件上传表单的enctype="multipart/form-data" method="post"
private File file;
private String fileContentType;
private String fileFileName;
d) 对应Action中拦截器的配置
<interceptor-ref name="fileUpload">
<param name="maximumSize">102400</param>
<param name="allowedTypes">application/msword</param>
</interceptor-ref>