struts2文件上传
来源:互联网 发布:js点击显示隐藏div 编辑:程序博客网 时间:2024/06/10 13:30
WARNING: Error setting expression 'image' with value '[Ljava.lang.String;@1093fd9'
ognl.MethodFailedException: Method "setImage" failed for object cn.lcu.action.UploadAction@1e0170c [java.lang.NoSuchMethodException: cn.lcu.action.UploadAction.setImage([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)
对于这样的错误警告,会有两种情况:
1,你的action里边可能没有没有为表单项提供get,set方法
2,<form action="${pageContext.request.contextPath}/control/department/upload.action"enctype="multipart/form-data" method="post">
文件:<input type="file" name="image"/><br/>
<input type="submit" value="上传">
</form>
enctype="multipart/form-data" 这个参数写错了,也会出现这种情况。
- struts2上传文件(三) struts2上传文件
- [Struts2]Struts2的文件上传
- Struts2的文件上传
- Struts2文件上传
- Struts2 上传文件实例
- struts2文件上传
- struts2文件上传
- Struts2的文件上传
- struts2-上传文件(1)
- struts2-上传文件(2)
- Struts2上传文件示例
- struts2文件上传
- Struts2实现文件上传
- struts2文件上传
- Struts2 文件上传
- ext + struts2 上传文件
- Struts2 文件上传
- Struts2的文件上传
- 习题2-6 调和级数
- chmod 命令的详细用法
- python扫描网站目录
- poj sum it up
- 全壳解剖一(exPressorV1.0)
- struts2文件上传
- JSP中page、request、session、 application的作用域
- eclipse 汉化 svn安装
- 各国iPhone5系列最新裸机价格
- androidmanifest.xml中声明相关权限
- .yml是什么文件
- delphi实现com+远程(包括本地)调用
- Caocao's Bridges hdu4738 (网络赛 杭州赛区) hdu 4738
- 雅虎三道面试题