struts2的token 使用
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")