I have a project based on the Spring Web model-view-controller (MVC) framework. Spring framework version Web-model-view-controller (MVC) 3.2.8 is deployed on a WebLogic server Version: 12.1.2.0.0
I have this form in 1 JSP
<form:form commandName="deviceForm" name="deviceForm" id="deviceFormId" method="post" action="${contextPath}/device/${deviceForm.device.id}" htmlEscape="yes" enctype="multipart/form-data">
I do a couple of things using the POST method .. after that I use the browser button (IE11) back and I got this error
Webpage has expired Most likely cause: β’The local copy of this webpage is out of date, and the website requires that you download it again. Something to try: Click on the Refresh button on the toolbar to reload the page. After refreshing, you might need to navigate to the specific webpage again, or re-enter information. More information More information If you continue to have this problem, try the following: 1.In Internet Explorer, click the Tools button , click Internet Options, and then click the Advanced tab. 2.Scroll down and clear the "Do not save encrypted pages to disk" option in the Security settings.
I also tried redirecting the POST method
response.setStatus(HttpServletResponse.SC_SEE_OTHER ); response.setHeader("Location", /device/" + device.id"); response.setHeader("Connection", "close"); response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. response.setHeader("Pragma", "no-cache"); // HTTP 1.0. response.setHeader("Expires", "0"); // Proxies. return "redirect:/device/" + device.id";
Amadeu cabanilles
source share