This can happen if your computers date is wrong or gets changed to the past somehow. Also if the file is an "include" the owning jsp needs to be touched as well.

SIVA SHANKAR wrote:

Thanks Arik.  But I did change the settings "reloadable" to true.  Still
it's not working.

Siva.

-----Original Message-----
From: Arik Kfir [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 6:19 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem in reflecting changes made on a JSP File

That's how Tomcat (and basically any JSP web server) works - each JSP page
is translated into a Servlet (e.g. a .java file and a .class file) and the
next time you request the JSP file, the web server simply runs the servlet
rather than loading the JSP file again. However, there is an attribute in
Tomcat that tells it to check the JSP file if it was modified since the last
time it compiled it - and if so, re-compile it again into a servlet.

The fact that you deleted the .java+.class files didn't matter because they
were already in memory. The web server doesn't read them (the servlet class)
from the file-system each time.

If you want to make Tomcat to check your JSP file for changes each request,
edit your SERVER.XML file (which is in the conf directory) and set the
attribute "reloadable" to true.

Best regards,

Arik Kfir
Team Leader
Israel.

-----Original Message-----
From: SIVA SHANKAR [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:36 PM
To: [EMAIL PROTECTED]
Subject: Problem in reflecting changes made on a JSP File

Hi,

I installed Tomcat on a Windows NT Machine.  Everything is working fine.
All the samples are working great.  I did create a JSP file which will
connect to a SQL Server database and retrieve data from a table.  Initially
it works fine.  After that When I did some modifications on the file, but
it's not reflecting those changes.

I found that it's creating a .java & .class file in the work directory, when
I hit the file for the first time.  Even after deleting that file, it
could'nt reflect those changes.  But after I restarted the service
(jakarta), it is working.

Somebody please help me to solve this problem.

Thank you in advance.

Siva.

-- 
Simon Chatfield
VP, Software Development
Inteflux Inc.
 



Reply via email to