No result defined for action and result input -...
来源:互联网 发布:pdf生成软件 编辑:程序博客网 时间:2024/05/27 09:47
这是struts2的一个拦截器报的错误,当你的form中的数据有问题,比如说
<input type="text" name="bianliang" value="${bianliang}">
当 bianliang值为NULL时,又或者变量是int,long,double而值是字符串类型时,就出这个错了。
具体查看form哪个变量或者值出了问题,可以在error.jsp中加入:
< div style ="color:red" >
< s:fielderror />
</ div >
< s:fielderror />
</ div >
,并在struts的XML中对应action里加如
<result name="input">/error.jsp</result>
它就会显示拦截器的错误.
<result name="success">/into_prison/into_Prison_index.jsp</result>
你的Action中返回SUCCESS,但是实际运行中Action并没有返回SUCCESS而是出现了错误,返回INPUT,所以你要定义与INPUT对应的Result,你可以添加一个
<result name="input">/error.jsp</result>
让他把错误返回到该页面就可以了,查看修改一下就可以了
- 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
- No result defined for action action.UploadAction and result input
- No result defined for action action.UserAction and result input
- No result defined for action ....Action and result input
- No result defined for action and result input(笔记)
- struts2 No result defined for action.....and result input
- No result defined for action and result input -...
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action and result input
- No result defined for action and result input
- 404:No result defined for action and result input
- 拼音码录入的整体方案
- Ruby 1.8.7 和 1.8.6 的下载地址
- [zz]Emacs和Vim:神的编辑器和编辑器之神
- ActiveMQ--配置端口
- Httplook使用问题汇总
- No result defined for action and result input -...
- 深入理解Android消息队列原理篇
- Weblogic8缓存清理
- android sw watchdog and How to Debug
- Linux proc详解
- 圖像細化算法大全
- Maven与Ant比较
- sas协议之spc4中的receive diagnostic 和send diagnostic
- QT生成有图标的exe文件