struts2的token 使用

来源:互联网 发布:insar数据处理软件 编辑:程序博客网 时间:2024/06/07 11:39
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")

原创粉丝点击