Struts2:(No result defined for action ** and result input) is not available.
来源:互联网 发布:重启网卡 linux 编辑:程序博客网 时间:2024/06/09 13:48
当你在用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>
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>
- Struts2:(No result defined for action ** and result input) is not available.
- 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 *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
- Struts2异常:No result defined for action cn.itcast.oa.struts2.action.DepartmentAction and result input
- Struts2 异常:no result defined for action result input
- Struts2疑难--No result defined for action com.marry.action.HqsyAction and result input
- struts2 拦截器报错:No result defined for action xxx.action and result input
- struts2 在拦截器里报错:No result defined for action com.gkwl.action.UserAction and result input
- No result defined for action cn.itcast.oa.struts2.action.RoleAction and result input
- Unix/Linux Shell编程实战:使用嵌入文档Here Documents
- linux shell 下here document 文档
- kinect 开发笔记
- 常用Shell脚本集
- Ketama 修改支持分布式存储迁移-笨方法
- Struts2:(No result defined for action ** and result input) is not available.
- Writting Principle
- makefile
- jsky 3.5.1专业破解版——绿色版(免安装 单文件)
- Nmap 5.51-gui(win)单文件免安装绿色版 强大的端口扫描工具
- Acunetix Web Vulnerabil 7.x 破解版 免安装,绿色版
- JQuery插件第十三个 : 图片批量滚动的封装
- The not so short Introduction to Latex2 第四章
- TD-SCDMA和WCDMA差异比较