Struts2 'redirect-action' 配置错误问题

来源:互联网 发布:贩卖博客源码违法吗 编辑:程序博客网 时间:2024/06/06 20:56

刚刚遇到一个 Struts2 的问题, result  type为: redirect-action' 

Tomcat 启动时候报错,

There is no result type defined for type 'redirect-action' mapped with name 'xxx'

 

解决方法:

我发现我用的 Struts2 是2.1.8版本, 而 type="redirect-action" 这样的配置早在 2.1.2 以上开始就变成了 type="redirectAction" 这样配置了.