RE: Caching Problem

2001-05-15 Thread Firmin David

Hi Dinesh,
Not sure if this is what you mean, but here goes:
If you set the following headers into the JSPs response, the page will not
be cached.
Use the following scriptlet in the page to take care of this
<%
response.addHeader("Pragma", "NoCache");
response.addHeader("Cache-Control", "no-cache");
response.addDateHeader("Expires", 1);
%>

Take a look at 
http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg245850.pdf 
Section 6.5.6 for more information on this subject.

Hope this helps.
Rgds
David

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 14:02
To: [EMAIL PROTECTED]
Subject: Caching Problem



Hello Every body

I am facing a problem ,i want  My JSP Page not
to take content from chache can anybody help me.
Thanks & Regards

Dinesh Chaturvedi
Programmer Analyst 
Nihilent Technologies Pvt Ltd.
Pune 091-20-6054452 Ext 349





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***




RE: Caching Problem

2001-05-15 Thread Nanduri, Amarnath


In your web.xml file set the following ...

  
action
org.apache.struts.action.ActionServlet

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  validate
  true


  nocache
  true

  


-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:02 AM
To: [EMAIL PROTECTED]
Subject: Caching Problem



Hello Every body

I am facing a problem ,i want  My JSP Page not
to take content from chache can anybody help me.
Thanks & Regards

Dinesh Chaturvedi
Programmer Analyst 
Nihilent Technologies Pvt Ltd.
Pune 091-20-6054452 Ext 349






RE: Caching Problem

2001-05-16 Thread Dinesh Chaturvedi

Hi David 

You got the problem right well i have tried using only the last
line of your code 
response.addDateHeader("Expires", 1);
in my code it does not work maybe this will solve the problem. 



Hi Dinesh,
Not sure if this is what you mean, but here goes:
If you set the following headers into the JSPs response, the page will
not
be cached.
Use the following scriptlet in the page to take care of this
<%
response.addHeader("Pragma", "NoCache");
response.addHeader("Cache-Control", "no-cache");
response.addDateHeader("Expires", 1);
%>

Take a look at 
http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg245850.pdf 
Section 6.5.6 for more information on this subject.

Hope this helps.
Rgds
David

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 14:02
To: [EMAIL PROTECTED]
Subject: Caching Problem



Hello Every body

I am facing a problem ,i want  My JSP Page not
to take content from chache can anybody help me.
Thanks & Regards

Dinesh Chaturvedi
Programmer Analyst 
Nihilent Technologies Pvt Ltd.
Pune 091-20-6054452 Ext 349





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***