ResultType的最常用的几种配置:(四种配置分别代表了四种不同的跳转方式)
1.<!--type不写默认的为dispatcher:用服务器跳转跳转到结果页面--只能跳转到页面,不能跳转到Action -->
@Result(name = "getok",type="dispatcher", location = "../index.html")
2.<!--客户端跳转的方式跳转到结果页面 只能跳转到页面,不能跳转到Action -->
@Result(name = "getok",type="redirect", location = "../index.html")
3.<!--服务器跳转的方式跳转到Action -->
@Result(name = "getok",type="chain", location = "../index.html")
4.<!--客户端跳转的方式跳转到Action -->
@Result(name = "getok",type="redirectAction", location = "../index.html")
更多参考:
http://longdechuanren.javaeye.com/blog/561044