摘要
在基于B/S架构的JavaWeb项目开发中都会涉及到表单的重复提交问题,传统的解决方案与技术也很多,但大多都存在代码安全漏洞,不能从根本上解决表单的重复提交问题,该文作者针对这类问题,通过把JavaScript、Session会话、隐藏表单、Base64编码、Servlet,以及Struts2框架中的token令牌等技术进行综合应用,给出了一个解决表单重复提交问题的终极方案。
Based on B / S structure of JavaWeb development of the project will involve duplicate form to submit questions, traditional solutions and technologies are many, but most of the code for security vulnerabilities exist, can not fundamentally solve the problem of duplicate form submission, the author is against such problems by putting JavaScript, Session session, hidden form, Base64 encoding, Servlet, as well as the token token Struts2 framework for integrated application technology, gives a solution to the problem of duplicate submission form is the best solution.
出处
《电脑知识与技术(过刊)》
2013年第12X期7966-7967,共2页
Computer Knowledge and Technology