No result defined for action and result input
来源:互联网 发布:主席诗词 知乎 编辑:程序博客网 时间:2024/04/29 22:20
这个错属于Action里面出了错,而在struts.xml文件中并没有给input指定返回视图
导致Action里出错的原因是多种多样的。
这个问题好像在strtus2.1以上版本才出现, 这个问题的上面的解决方案已经把原因说的差不多了,在实际应用中,我估计大部分情况应该都是在action里面定义了int或者别的什么类型的变量,然后指望struts的自动填装把post来的数据转换,这时容易出现转换失败,从而导致了这个错误,所以查这个错误,可以利用ff的httpfox来查看实际post的参数是什么,然后和action中对应的属性对比,看那个会出现转换错误。
淡然另一种就是上面说的在所有的set 中加入断点,总能看到是哪个方法执行失败的。
我这里的原因是,
<s:hidden name="id"></s:hidden>隐藏域
提交了两次,而在Action当中只有一个
private Long id;
来接受参数,所以出错。
- 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
- Kerberos原理
- 深入浅出asterisk(二):chan_sip代码分析(上)
- 黑马程序员---交通灯管理系统
- hdu 2147 SG函数打表(手写也可以) 找规律
- 有关于Tomcat服务的设置
- No result defined for action and result input
- nyist-85
- STRING INT INTEGER间的转换(ZZ)
- Android 应用程序窗体显示状态操作(requestWindowFeature()的应用)
- django 模板中使用配置参数
- C# WinForm的ListView的列排序
- 客户端用不用bind的区别
- ContentProvider 监听数据变化
- CCS中的DSP代码优化指令