Posted on 2007-06-27 11:00
oxl 阅读(529)
评论(0) 编辑 收藏 所属分类:
技术感语
webwork.properties加入以下内容:
webwork.multipart.saveDir=d:\\tmp
webwork.multipart.parser=jakarta
/WEB-INF/lib加入下面的库:
commons-io.jar
commons-fileupload.jar
Action内的实例变量可以是数据,不过他们必须遵从这样的格式:

file

fileContnetType

fileFileName