开发中出现了这个错误,
no result defined for action xxxx and result input
这个原因主要是提交的参数值与bean中定义的类型不对应导致,在ParametersInterceptor中可以看到action的validationAware中有个error属性有值。
出现转换错误后,struts返回input,在action的配置种没有input,所以,提示信息就是action没有resut定义,并且返回值是input
本文分析了在使用Struts框架开发过程中遇到的一个常见错误:no result defined for action xxxx and result input的原因及解决办法。该错误通常是由于提交的参数值与bean中定义的类型不匹配导致的。
开发中出现了这个错误,
no result defined for action xxxx and result input
这个原因主要是提交的参数值与bean中定义的类型不对应导致,在ParametersInterceptor中可以看到action的validationAware中有个error属性有值。
出现转换错误后,struts返回input,在action的配置种没有input,所以,提示信息就是action没有resut定义,并且返回值是input

被折叠的 条评论
为什么被折叠?