现在的位置: 首页 > 综合 > 正文

Struts2 ‘redirect-action’ 配置错误问题

2014年02月06日 ⁄ 综合 ⁄ 共 228字 ⁄ 字号 评论关闭

刚刚遇到一个 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" 这样配置了.

 

抱歉!评论已关闭.