*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts Page Expired
 
Similar Threads
Caching problem.
How to avoid the internet files which will be stored in internet temporary folder?
problem in caching jsp pages
How to load JSP dynamically using mapping.findForward()
JavaScript not working in Mozilla