Struts2常见错误-No result defined for action XXX and result input
来源:互联网 发布:dmsp夜间灯光数据 编辑:程序博客网 时间:2024/04/29 23:52
今天在做Struts2文件上传时报了这个错误,这个错误大家都经常遇到,而且很难排除,因为页面报的错误没有什么参考价值
我们可以在struts.xml中配置一个name为input的result:
<result name="input">/showStrutsError.jsp</result>
然后在WebRoot下新建showStrutsError.jsp
引入struts标签库:<%@ taglib prefix="s" uri="/struts-tags"%>
在body中写这两个标签
<s:actionerror/><s:fielderror></s:fielderror>然后就可以看到错误信息了,我的错误是struts默认限制上传文件大小为2M,解决方式是:在struts.xml中设置该常量,改为20M
<constant name="struts.multipart.maxSize" value="20971520"></constant>
0 0
- Struts2常见错误-No result defined for action XXX and result input
- Struts2:No result defined for action XXX and result input
- No result defined for action XXX and result input
- No result defined for action XXX and result input
- struts2 拦截器报错:No result defined for action xxx.action and result input
- struts2 No result defined for action.....and result input
- [SSH]Struts2 -- No result defined for action and result input
- struts2 no result defined for action xxxx and result input
- struts2的一个异常:No result defined for action XXX and result input
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- 404-No result defined for action and result input 错误
- Struts2——No result defined for action and result input - action错误
- No result defined for action action.UploadAction and result input(开发错误记录struts2)
- 关于Struts2中的No result defined for action and result input错误
- No result defined for action *Action and result input - action -
- No result defined for action and result input - action
- No result defined for action action.UploadAction and result input
- No result defined for action *Action and result input
- 杭电1599 find the mincost route
- 使用框架的好处,hibernate缓存
- iOS学习笔记--03 UITableView相关
- SIGCHLD和waitpid的使用
- nvidia自动更新带来的问题
- Struts2常见错误-No result defined for action XXX and result input
- Android Studio 快捷键
- 一次完整的HTTP请求所经历的7个步骤
- Codeforces_4A
- Stack的三种含义
- HDU 2955 Robberies
- C++设计模式[十五]迭代器模式
- Tomcat使用java+mysql连接池一定时间后不响应问题
- 开源分词软件