This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
Consider Paul's rocket mass heater.
 
subject: Struts Page Expired