What u can do is to set the header for no caching --
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");

and also check u r browser settings

or u just initialize the customer number to null in the beginning in jsp
page

----- Original Message -----
From: "M Sankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 21, 2001 4:41 PM
Subject: Cache


> Hi,
>
> My application has some beans which store some values retrived from a
> server. They act as container classes. My JSP's access those classes to
> get the values and do the subsequent process. These values change with
> respect to the changes from the server. For example I have a customer
> number I am retrieving from the server. This number is stored in a
> container bean.
>
> The problem is once I retrieve this  customer number and then just close
> the browser window and shutdown the server which is feeding me the data
> and again login as another customer, the page is supplying me the old
> retrieved customer id. This is a hazardous situation because one
> customer may go into another's page. Please note that while I am doing
> this transaction my server which supplies the info is shutdown. So
> normally it should through an error that data not found. But it is
> taking the data from cache and throwing me the page.
>
> How to avoid this problem. Is there a way by which I can reload a bean
> or instantiate and force to reload the bean even if the instance
> exists??? Or any other way
>
> Plz help
>
> Thx
> Sankar
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to