struts2:No result defined for action and result调试
来源:互联网 发布:mac 远程桌面共享文件 编辑:程序博客网 时间:2024/04/29 20:40
当你在用struts2开发时,如果,从页面跳入action时,页面报No result defined for action and result时,大部分的原因有以下几种:
1、validate方法没有通过;
2、页面元素中有重命名时,但后台action类的对应的接收此同名参数的是变量而没有写成数组
要检查这种错误时,可以1,在后台action类中重写ActionSupport中的void addActionError(String anErrorMessage)void addActionMessage(String aMessage)void addFieldError(String fieldName, String errorMessage)这三个方法,在并在其实现代码中设置断点,监控传入的参数,并可获知页面的相关报错具体原因.2,在页面中加入以下标签,将错误显示出来:
<div style=”color:red”>
<s:fielderror/>
</div>
<s:fielderror/>
</div>
- struts2:No result defined for action and result调试
- struts2 No result defined for action.....and result input
- Struts2:No result defined for action XXX and result input
- [SSH]Struts2 -- No result defined for action and result input
- struts2 no result defined for action xxxx and result input
- no result defined for action and result
- No result defined for action and result
- No result defined for action and result
- No result defined for action and result
- No result defined for action and result
- No result defined for action action.QueryAction and result result
- No result defined for action *Action and result input - action -
- Struts2异常:No result defined for action cn.itcast.oa.struts2.action.DepartmentAction and result input
- 关于struts2 No result defined for action
- No result defined for action and result input - action
- No result defined for action action.LoginAction and result success
- No result defined for action action.UploadAction and result input
- No result defined for action *Action and result input
- 开源SIP服务器OpenSIPS应用介绍
- 裸机 TEST2
- 指定本地地址及端口号
- 动画(Animation) 之 (闪烁、左右摇摆、上下晃动等效果)
- Java HTTP请求时设置超时
- struts2:No result defined for action and result调试
- 三五个人十来条枪 如何走出软件作坊成为开发正规军
- ASIHTTPRequest
- 从源代码安装perl 5.12.3+DBI/DBD
- QTextEdit选择文本
- 大型JavaScript应用程序架构模式
- 1*3 键盘中断
- 将List 集合 转换为Jsion 数据
- js解码和编码问题