Hi folks, I finally figured out how to get my sample custom tag to work. My question now is this: When I change my java class, even a minor change such as adding a word to the end of a string that will be printed out on the screen, I then recompile it. Then I try to refresh the JSP page in the IE browser but there is no change. The only way I can see the change to the class is if I shutdown Tomcat, restart it, then refresh the JSP. How can I (or can I) make my changes to the class without having to shutdown Tomcat to make them effective? I am running Tomcat 4.0.3 on Windows 2000 with a cable Internet connection. Thanks, Howard
<a href="http://www.getlocaldeals.com" target="_blank" rel="nofollow">Free local coupons</a>
I think there are classloaders for each web application that we host and they are not configured to do a reload everytime a java class file changes. So looks like there is no alternative to restarting tomcat. yeah jsps are handled in a differnt way though. imean as you must be knowing they are reloaded when changed. But somebody might have a different answer.
Originally posted by Howard Ralston: How can I (or can I) make my changes to the class without having to shutdown Tomcat to make them effective?
Have you tried just touching the .jsp? By 'touching', I mean setting the timestamp to be something later than the last time the .jsp was accessed. If you have direct access to the directory where the webserver stores the .jsp, just use NOTEPAD or vi to load and save the file. Is your .jsp inside a .war (or .ear) file? Take it out until your testing is complete. Then deploy inside a .war. Or touch the .jsp files before you jar up the .war file.
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss