Struts2——No result defined for action and result input
来源:互联网 发布:知乎怎么解除绑定手机 编辑:程序博客网 时间:2024/05/16 00:48
提交表单时,Struts2提示 No result defined for action actions.DemoAction and result input - action - 错误。
原因分析:
该错误表示你的Action的配置文件内没有一个name为input的结果。这个input结果是Struts2定义的当验证参数出错时产生的默认结果。这说明你传递给Action的参数值与Action中的属性可能存在不匹配。
解决方法:
1、仔细检查参数名称与Action中的属性名称是否相等
2、仔细检查参数值的类型与Action中的属性类型是否匹配
3、检查form表单的enctype=”multipart/form-data”属性是否配置, <s:form action="${request.contextPath}/goodsBusinessSub!saveSubs.do" enctype="multipart/form-data">
阅读全文
0 0
- Struts2——No result defined for action and result input - action错误
- No result defined for action action and result input 解决办法——struts2 文件上传
- 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
- Struts2——No result defined for action and result input
- Struts2——No result defined for action 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
- hadoop集群出现live nodes为1的解决方案
- JavaScript停止冒泡和阻止浏览器默认行为
- mysql 经纬度计算离一点的距离
- 【机器学习PAI实践十二】机器学习实现双十一购物清单的自动商品标签归类
- freemarker教程
- Struts2——No result defined for action and result input
- 【程序猿心得】Bootstrap开发案例中的小细节注意
- 非常可乐(HDU-1495)
- h5中zoom与text-indent属性
- java正则 Pattern和Matcher
- uboot中增加命令
- 数字电路学习笔记
- Python中的切片
- java关于jar包里面路径的相关问题