Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Page Expired

 
Ggaurav Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic