This is exalctly what is happening... the page corresponding to your refresh is
cached, so the vrowser will not send the request to the server again but will get
the cached file. So, you have to set one or all of the following headers in your
pages ! I think that you have to use more than one of these in order to disable
page  caching in most browse (ie - nsc... )
>From previous post :
<meta http-equiv="Expires" content="0">
<meta http-equiv="Last-Modified" content="0">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">

"
I think you'll also want (need?) to include HTTP headers as well.
Specifically, you'll want to include an "Expires" header (for HTTP 1.0
browsers), a "Pragma: no-cache" header (particulary for Netscape 3), *and*,
finally, a "Cache-control: no-cache" header (for HTTP 1.1 browsers).
"
Hope this Helps
Regards
Veronique



Anjan Ghosh a �crit :

> Hi all,
> I have the following problem.
> I have two frames - leftframe and rightframe - in an HTML page. The
> leftframe shows a list of key fields. On clicking one item in the list, the
> corresponding details is fetched from the database and shown in the
> rightframe. The user can edit the data in the rightframe and then submit it.
> Now, the problem is, after the data is updated in the database, when the
> user again clickes on the same list item in the leftframe, still the old
> data is shown ( it is now not fetched from the database ). But when I right
> click on the rightframe and click 'Refresh' from the menu, i get the actual
> page with the current updated data.
> Can you tell me why this is happening and how do i solve this problem
>  which appears to me, as if, the browser is caching the previous pages and
> showing them in the second time also without going to the database and
> fetching the record).
> Please suggest what I should do to stop the browser cache the pages.
>
> Regards,
> Anjan
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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".
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