I am using:
Tomcat 4.0.1
Windows 2000 Pro, SP2
IE 5.5
Here is my directory structure:
In server.xml, the only addition I've made is a
test Context element between the
manager context and the
examples context:
In my web.xml under my webapp's WEB-INF directory, I have:
Finally, my servlet code is:
Starting Tomcat, and hitting the URL:
http://localhost:8080/test/hello produces a page titled "Hello World!" with "Hello World!" in Big letters.
Going back to my servlet, and uncommenting the Small Change line, recompiling, and refreshing my browser, and I see a different page.. one that has "Small Change" right underneath Hello World.
The very first time I did this, I had to hold down the Shift key while I clicked on Refresh. For each subsequent change, (I put on "change 2, change 3, etc, etc...), a single click on the refresh seemed to work.
There are no 'special' considerations to be made. Just make sure you have the 'reloadable' attribute in your Context element set to true, and
you should be fine. I had previously thought this was a default value, but I've tried it out, and it doesn't appear to work.