如何禁用tomcat中的后退按钮? [英] How to disable the back button in tomcat?

查看:129
本文介绍了如何禁用tomcat中的后退按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Web应用程序并将其部署在tomcat7中.该应用程序通过以下方式工作:用户通过正确的身份验证登录,然后显示测试页(html),用户可以在其中选择答案并提交测试.提交后,另一个serverlet被称为在其中向用户显示分数.

问题是,如果用户返回分数(通过浏览器后退按钮)并再次提交测试,则在获得分数之后,分数就被更改了.我该怎么做才能防止这种情况?

I have created a web application and deployed it in tomcat7. This app works in the following way: User logs in through proper authentication and then a test page(html) is displayed where user selects answers and submits the test. After submitting another serverlet is called where score is displayed to the user.

The problem here is once after getting the score if the user goes back(through browser back button) and submits the test again,the score is being altered.What shall i do to prevent this?

推荐答案

这与tomcat无关.

检查以下链接以获取html解决方案: http://www. htmlgoodies.com/tutorials/buttons/article.php/3478911/Disabling-the-Back-Button.htm [
This has nothing to do with tomcat.

Check the following link for html solutions : http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911/Disabling-the-Back-Button.htm[^]


这篇关于如何禁用tomcat中的后退按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆