关于"No result defined for action com.ccxe.credit.action.ReportAction and result input"的错误
2014-04-25 15:44
471 查看
在采用了Struts2框架的项目里面:前端jsp页面调转到action时,出现”No result defined for action com.ccxe.credit.action.ReportAction and result input“ 错误。打断点时不能进入Action。这显然是个很头疼的问题。配置都是正确的,就是进不了Action。我们经常忽略一个重要的问题:前段jsp页面跳转到aciton之间还有一个有Struts2自动完成的动作;封装表单数据。这个错误的产生就是在Struts2封装form表单时出差的。在页面加入以下代码来验证:(假设是a.jsp页面)
<tr><td><div style="color:red"><s:fielderror /></div></td></tr>在对应的配置文件中加入以下配置:<result name="input">a.jsp</result>这样会将对应的错误信息返回到页面显示。一般来说这种错误会是由字段类型不匹配造成的。根据具体的错误信息提示,修改页面input元素的值,或者添加页面验证都是可以的。
相关文章推荐
- 关于Struts2报"No result defined for action +(包名) and result input"的解决方法
- 关于No result defined for action com.gen.action.FrontAction and result input解决方法
- 【填大坑】关于Struts2中的 No result defined for action and result input 错误
- strust2的“No result defined for action cn.xx.xxxAction and result input”错误
- struts2环境配置是出现No result defined for action *** and result input”的错误信息
- struts2 在拦截器里报错:No result defined for action com.gkwl.action.UserAction and result input
- No result defined for action com.buaa.spring_test.action.TestAction and result input
- No result defined for action com.igit.contract.web.action.ContContractAction and result input
- HTTP Status 404-no result defined for action com.huida.action.LinkManAction and result input
- Struts2疑难--No result defined for action com.marry.action.HqsyAction and result input
- Struts2——No result defined for action and result input - action错误
- 关于问题“404 No result defined for action XXXAction and result input ”的见解
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- No result defined for action com.zph.ssh.actions.CourseAction and result input
- No result defined for action com.szcport.action.DataApplyAction and result input
- [Struts2] No result defined for action ... and result input & Invalid field value for field ...
- 关于报错 No result defined for action.....and result input
- No result defined for action com.bdqn.action.UserRoleRelateAction and result input
- [Struts2] No result defined for action ... and result input & Invalid field value for field ...
- No result defined for action com.ancs.smis.webapp.action.SmisProblemRectifyAction and result input