Looks like you're setting some value you use in the calculation of the date
at compile time (i.e. when the JSP is
compiled). Asking for the JSP not to hang around simply means the instance
of the JSP for a given session or whatever.
JSP scriptlets (<% %>) are executed at request time (whenever the page is
refreshed, just like an HTML page) while declarations (<%! %>) are only
executed at compile time. Use the latter for method and variable
declarations.
Check your code and see if some thing which you expect to be variable with
each request to the page is actually fixed from when the JSP is compiled.
The fact that the code works when you change the JSP suggests this is what
is happening.
Hope this helps,
Dan.
============================================================================
====
Date: Wed, 6 Dec 2000 09:31:55 +0530
From: "Balkrishna R.Parab" <[EMAIL PROTECTED]>
Subject: JSP REFRESHING
Hi All,
I am facing problem in refreshing JSP page. I am displaying todays birthday
based on system date, but jsp page doesnt display todays birthday unless i
make some changes in JSP page.
this is what i hv in jSP page
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
can anyone help me??
Thankx and regards,
Balkrishna R Parab
Global TeleSystems Ltd,
Ph:761 29 29 -ext 3280
===========================================================================
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