I believe once a servlet is initialized in memory, it stays in and is re-used over and over. After removing the class, you'd have to reload the webapp to make the change show.
--David Daniele Development-ML wrote: > Consider also that once the application is loaded is memory, even if you > cancel the classes, the application still works. > I doubt that the JVM maintains in memory all the classes, all the times, but > if your current usage of the heap is not ridiculous big, probably your class > remains loaded. > > Dan > > On Tue, Aug 18, 2009 at 8:00 PM, Tena Sakai <tsa...@gallo.ucsf.edu> wrote: > > >> Hi Dan, >> >> >>> Are you reloading the pages from the server with the shift key? >>> The pages might be locally cached from your browser. >>> >> Shift or no shift, it makes no difference. >> I told my browser to dump the cache then hit pages again. >> No difference. >> >> I doubt this is a cache issue. If that's the case, why does >> it reflect my hack (double "Hello!") and no class file? >> >> I am confused. >> >> Tena >> >> >> -----Original Message----- >> From: Daniele Development-ML [mailto:daniele....@googlemail.com] >> Sent: Tue 8/18/2009 11:51 AM >> To: Tomcat Users List >> Subject: Re: (newbie question) missing classs file? >> >> Are you reloading the pages from the server with the shift key? >> >> The pages might be locally cached from your browser. >> >> Dan >> >> On Tue, Aug 18, 2009 at 7:48 PM, Tena Sakai <tsa...@gallo.ucsf.edu> wrote: >> >> >>> Hi, >>> >>> I am new to tomcat and jsp. I appologize in advance my lack of >>> >> knowledge, >> >>> but I would appreciate some poninters. >>> >>> I am running tomcat 6.0.14 on redhat linux. >>> >>> After reading a few pages of documentation, I tried: >>> http://localhost:8080/sample >>> >>> It rendered what's in $CATALINA_HOME/webapps/sample/index.html, >>> which included 2 hyperlinks: "JSP page" and "servlet". Both >>> links worked fine. >>> >>> Then I found a file >>> $CATALINA_HOME/webapps/sample/WEB-INF/classes/mypackage/Hello.class. >>> I removed this class file and hit the same url as before ( >>> http://localhost:8080/sample), >>> and each of the "JSP page" and "servlet", expecting the error from >>> >> tomcat. >> >>> To my amazement, they both worked. >>> >>> Question number 1: Where is the executable class file? >>> >>> Then I went on to modify hello.jsp in $CATALINA_HOME/webapps/sample >>> directory. >>> I added extra string "Hello!" to what used to be: >>> <%= new String("Hello!") %> >>> >>> Tomcat gave me what I expected: double Hello's. >>> I thought it might have generated a class file. But there is no class >>> >> file >> >>> anywhere under $CATALINA_HOME/webapps/sample directory? >>> >>> Question number 2: Why does this work? >>> >>> Thank you in advance. >>> >>> Regards, >>> >>> Tena Sakai >>> tsa...@gallo.ucsf.edu >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org