isTokenValid
Return true if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it.resetToken
Reset the saved transaction token in the user's session.saveToken
Save a new transaction token in the user's current session, creating a new session if necessary.

解决方案 »

  1.   

    是不是一个页面初始化的时候要 saveToken()然后在响应事件的时候  先  isTokenValid()  resetToken()如果这个事件没有画面迁移的话就  在这个事件结束的时候  再  saveToken()有画面迁移的时候就不用这个做
    这样理解对不对
      

  2.   

    是为了防止用户重复提交的,
    在数据读入.do未中加入saveToken(request)
    在第二个.do的开始判断isTokenValid(request)如果有效继续否则丢出错误信息
    最后resetToken(requet)注销token
     
    你可以把信箱给我,我这里有收集的一个小例子
      

  3.   

    我的信箱:
      [email protected]谢谢