上面是struts.xml中的代码,基本的代码是:

 <result name="invalid.token">/token_error.jsp</result>

这样一段。



在JSP页面中,要加上这样一段话,<s:token></s:token><!-- 防止反复提交。要加上这一段话 -->

就能够防止反复提交了。

struts2防止反复提交的办法

相关文章:

  • 2021-05-25
  • 2022-01-31
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-02-02
猜你喜欢
  • 2021-12-15
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-12-11
相关资源
相似解决方案