Only providing your own navigation links should not be considered enough. 
Many users like to use the back and forward buttons of their browsers and 
will become very frustrated when they see this "Warning: page has expired" 
message.

You can configure your controller and set the nocache attribute of the 
controller tag in the struts-config.xml file to false... 
.. something like

<controller nocache="false" />

Hope this helps... it did for me.

Regards
Bjossi






"Mike Jasnowski" <[EMAIL PROTECTED]> 
06.01.2004 15:14

Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc

Subject
RE: Warning: Page has Expired








Well, presumably your providing some navigation for the user to move 
forward
in the application, why not provide a suitable link (rather than relying 
on
the back button) to do this?

-----Original Message-----
From: Manjunath Bhat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:35 AM
To: Struts Users Mailing List
Subject: RE: Warning: Page has Expired


Thanks for the reply. I tried this but no luck.

Actually my web form contains some form fields plus a file upload
element. Some thing similar to online resume submission. So I have to
POST method inorder to achieve the result.

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 5:49 PM
To: Struts Users Mailing List
Subject: Re: Warning: Page has Expired

Did you try to turn off expire? e.g.

<%
response.setDateHeader ("Expires", 0);
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
%>

Regards,
Martin

----- Original Message -----
From: "Manjunath Bhat" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 05, 2004 6:55 AM
Subject: Warning: Page has Expired


Hi

I have a page which calls an action. Depending on certain condition I
will forward it to suitable pages. After this steps if user clicks the
Browser's back button, it gives typical browser error "Warning: Page has
Expired " (I am using IE). This happens especially after the validation
failure. How to overcome this problem?
I don't want to use GET method in <html:form/>

Thanks in advance

M Bhat


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT0000553E 

Reply via email to