Vishal Dalal wrote:
Hi,
sorry for intervening. Actually my query is realted to the Caching part...
Actually i wanted to ask, do placing all these paramteres actually guarantee
that the page will be cached, because i think not.
Browsers aren't terribly consistent about how they interpret the various
caching-related headers, but that should work. You can also tell Struts
to do this for you by configuring the controller in struts-config.xml to
avoid having to add all that code to every JSP.
I myself have tried writing all this code in the page. Then when you go
forward from this page and click back, then the same content is displayed as
was done before...
This clearly implies that the brower caches the page and displays that when
you click back...
All that implies is that the dynamic content hasn't changed. Unless the
page has data on it that you know should be different on every page load.
L.
Please point out in case i am going wrong or if my logic is incorrect..
Thanks for reading
-Vishal
-----Original Message-----
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Friday, November 18, 2005 12:39 PM
To: Struts Users Mailing List
Subject: Re: Action.execute() only being invoked the first time a url is
requested ??!!!
Hi,
Most probably your page is gettnig cached by the browser. try
<head>
<META content=0 http-equiv=expires>
<META content=no-cache http-equiv=Pragma>
<META content=no-cache http-equiv=Cache-Control>
<META content=no-store http-equiv=Cache-Control>
</head>
or
<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
%>
to keep your browser from caching the page and see if it works.
HTH.
ATTA
On 11/17/05, Mon Cab <[EMAIL PROTECTED]> wrote:
For Example if I type in my browser address bar:
http://127.0.0.1:8080/webapp/userSignup.do?action=whatever
The first time, I type this in, this invokes the
execute method of my Action class (I'm using
System.out ("Action execute Invoked") in Action
execute to test this). If I then enter the exact same
url, this method is not getting called.
I am not using validator at all!!
Can anyone explain what is going on with this?
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Make your callers hear anything you like.Call 456 say DIALER TONES.
An idea can change your life.
************** LEGAL DISCLAIMER ************
This E-Mail may contain Confidential and/or legally privileged Information and
is meant for the intended recipient(s) only. If you have received this e-mail
in error and are not the intended recipient/s, kindly notify us at [EMAIL
PROTECTED] and then delete this e-mail immediately from your system. You are
also hereby notified that any use, any form of reproduction, dissemination,
copying, disclosure, modification, distribution and/or publication of this
e-mail, its contents or its attachment/s other than by its intended recipient/s
is strictly prohibited and may be unlawful.
Internet Communications cannot be guaranteed to be secure or error-free as
information could be delayed, intercepted, corrupted, lost, or contain viruses.
IDEA Cellular Limited does not accept any liability for any errors, omissions,
viruses or computer problems experienced by any recipient as a result of this
e-mail.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]