0
点赞
收藏
分享

微信扫一扫

struts2的token 使用

书呆鱼 2023-02-19 阅读 63


action中:

@Action(interceptorRefs = {@InterceptorRef("defaultStack"), @InterceptorRef("token")},
value = "testdrive",
results={@Result(name = Constants.SUCCESS, location = "/website/testdrive.jsp")}
)




注意:


需要加此返回


@Result(name = Constants.INVALIDTOKEN, location = "/tokenError.jsp")



举报

相关推荐

0 条评论