struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen" <sro...@yahoo.com>
Subject Re: Page Expiration
Date Thu, 29 Nov 2001 10:28:54 GMT
You can tell Struts to automatically set all the usual no-cache headers in
the HTTP response it sends back to the browser. This will get the effect you
are after.

In web.xml:

<servlet>
 <servlet-name>action</servlet-name>
 <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
 ...
 <init-param>
  <param-name>nocache</param-name>
  <param-value>true</param-value>
 </init-param>
 ...
</servlet>

Sean


----- Original Message -----
From: "Stanley Struts" <stanleystruts@yahoo.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, November 29, 2001 6:53 AM
Subject: Page Expiration


> How can I make it so that when the user clicks on the
> back button, he is presented with an error stating
> that the page has expired (does this make sense?)
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message