wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts Page Expired Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Page Expired" Watch "Struts Page Expired" New topic
Author

Struts Page Expired

Ggaurav Gupta
Greenhorn

Joined: Mar 26, 2010
Posts: 9
Hi all when i m pressing the back button in struts my web page expires. Is there any way possible that is should not be stored in the cache and the page automatically makes request and reload .

I m using the followin in the jsp
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
%>
If i remove this code the after logoff user is able to see the static content that i dont want.

I dont want the page to be stored in the cache and dont want to use get method.

Is it possible to display in the URL the name of JSP insted of Action used in the URL
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Page Expired