}
public List < String > getUploadContentType()
{
return this .uploadContentTypes;
}
public void setUploadContentType(List < String > contentTypes)
{
this .uploadContentTypes = contentTypes;
} 清单16 多文件上传列表绑定Action代码片段
总结
在Struts 2中实现文件上传的确是轻而易举,您要做的只是使用

