Struts2——No result defined for action and result input - action错误
2017-11-02 13:59
633 查看
提交表单时,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”属性是否配置,
原因分析:
该错误表示你的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">
相关文章推荐
- 使用Struts开发报错“No result defined for action and result input ...”
- No result defined for action action.UploadAction and result input(开发错误记录struts2)
- Struts2——No result defined for action and result input - action错误
- 【填大坑】关于Struts2中的 No result defined for action and result input 错误
- Struts2——No result defined for action and result input - action错误(今天也遇到,没见过很难找)
- Struts2常见错误-No result defined for action XXX and result input
- strust2的“No result defined for action cn.xx.xxxAction and result input”错误
- 404-No result defined for action and result input 错误
- 关于"No result defined for action com.ccxe.credit.action.ReportAction and result input"的错误
- No result defined for action and result input的错误
- struts2环境配置是出现No result defined for action *** and result input”的错误信息
- Java Web 的No result defined for action cn.itcast.action.CustomerAction and result input 错误
- 关于struts2上传文件报错“No result defined for action and result input”
- 404:No result defined for action and result input
- No result defined for action com.web.action.UserAction and result input
- No result defined for action org.action.StrutsAction and result success之解决
- No result defined for action and result input
- No result defined for action and result input
- Exception Name: No result defined for action XXXAction and result input
- [SSH]Struts2 -- No result defined for action and result input