I would make sure that your old file has not been saved somewhere else. It
sounds like your picking up a copy of your old servlet before finding the
new servlet in your path.
For example:
You saved the original javaservlet.class in file a
then made changes, recompiled, and saved in file a\b.
It will always pick up your file in a, before b.
I hope I explained this ok.
-----Original Message-----
From: Preston L. Bannister [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 06, 2000 10:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Cache problem
From: Ritesh Sinha
> Can you suggest me a server that automatically reloads Servlets. Actually
I
> am Working on JSP and I have used, JRun, Tomcat, JSWDK none of them do
> this.
First all servlet engines only reload servlets if they are in a specific
directory or directories - usually ./servlets/ but check you servlet engine.
I believe JRun will reload servlets, though I haven't used JRun much.
The *current* version of Tomcat will reload servlets. Older versions did
not - so check the release notes, I believe this is documented.
I use Jetty and Jetty can be configured to reload servlets (and recompile
JSP pages now that I have the right configuration :-).
I believe that the JSWDK servlet engine does *not* reload servlets.
> And again I am not sure how does the Browser store a servlet in Cache?
The browser absolutely does not cache servlets. The browser has no notion
that a servlet was invoked on the server side. The browser sees only HTML
pages and perhaps Java applets - never servlets.
If you are unclear what is done on the server and what is done on the
client side, I suggest you 1) read the HTTP RFC and 2) insert some sort
of proxy between the client and server so that you can see *exactly* what
does across the wire.
A great number of questions in this and related groups comes from a foggy
understanding of how what goes on between the web server and the web
browser.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html