The following is taken from 
http://www.moreservlets.com/Using-Tomcat-4.html#Servlet-Reloading

The next step is to tell Tomcat to check the modification dates of the class files of 
requested servlets and reload ones that have changed since they were loaded into the 
server's memory. This degrades performance in deployment situations, so is turned off 
by default. However, if you fail to turn it on for your development server, you'll 
have to restart the server every time you recompile a servlet that has already been 
loaded into the server's memory. 
To turn on servlet reloading, edit install_dir/conf/server.xml and add a 
DefaultContext subelement to the main Service element and supply true for the 
reloadable attribute. The easiest way to do this is to find the following comment: 

        <!-- Define properties for each web application.  This is only needed
             if you want to set non-default properties, or have web application
             document roots in places other than the virtual host's appBase
             directory.  -->

and insert the following line just below it: 
        <DefaultContext reloadable="true"/> 

Be sure to make a backup copy of server.xml before making the above change. 

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Tom
Sent: Friday, June 21, 2002 11:37 AM
To: [EMAIL PROTECTED]
Subject: JSP Tomcat for developers
Importance: High


Hi,
I am using tomcat 4.0.1 and having some problems working with JSPs.
Every time I edit a JSP it shows me the first version. (It's getting cached)
After a while it compiles again and shows me the new version. I've been
reading a bit and seen that a lot of people are having the same problem. I
know it's not my browser, I tried all that "Pragma no-cache stuff",  the
problem is that tomcat is not compiling a new version of the JSP.

Does anyone know how to set Tomcat to always compile?
Or is their anyway for a developer to edit JSPs quickly and see the result
"on the fly"
(I have to wait 3 minutes for the cache to clean or delete the localhost
folder in /work)

Thanks in advance.

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com칻&ޙbڽ.&+anr('H
LDDI1hؠzfj)mXǫ6j˧r[ܬzR<SL2$ҢgzWj{E('WƧmwZmڭb#jw()zfmjw(kۜ㲟jmXm
j{h'a0&){m)׫r


Reply via email to