0
点赞
收藏
分享

微信扫一扫

struts2 no result defined for action xxxx and result input

七千22 2023-06-28 阅读 33


开发中出现了这个错误,
no result defined for action xxxx and result input

这个原因主要是提交的参数值与bean中定义的类型不对应导致,在ParametersInterceptor中可以看到action的validationAware中有个error属性有值。
出现转换错误后,struts返回input,在action的配置种没有input,所以,提示信息就是action没有resut定义,并且返回值是input


举报

相关推荐

0 条评论