File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
Similar Threads
JavaScript not working in Mozilla
Caching problem.
How to load JSP dynamically using mapping.findForward()
How to avoid the internet files which will be stored in internet temporary folder?
problem in caching jsp pages