HTML:FILE 上传文件鬼打墙啊
JSP:
<html:form action= "/lucene?action=query " method= "POST "enctype= "multipart/form-data ">
<html:file property= "filePath "> </html:file>
<html:submit value= "提交 "> </html:submit>
</html:form>
ACTIONFORM:
public FormFile getFilePath(){
return this.file;
}
void setFilePath(FormFile file){
this.file=file;
}
ACTION:
FormFile file=luceneform.getFilePath();
在ACTION里死活得不到路径!!!!!!!!!!!!!!!!大家帮忙给看看
------解决方案--------------------没人会嘛?