使用convention插件的时候,会把 "/Test/Step1" 中的 /Test 当成 namespace ,这样如果跳转action不在同一namespace时就会有问题,所以要手动指定namespace
@Action(value = "/Test/Step1", results = { @Result(name = "Step2", type = "redirectAction", location = "Test/Step2", params = { "namespace", "/" }) }) 或者 @Result(name = "Step2", type = "redirectAction", params = { "namespace", "/Test", "actionName", "Step2" })