I am not how Tom works.And i don't where to look for mistakes. It's driving me Crazy...
I was writing the application for BeerSelect mentioned in HSFJ pg 77. I had no problem getting the Html page in my browser.
Mapping it to a servlet took quite sometime and I finally got it right!
Then i just wanted to change the display text from "Got beer color " to something else. Nothing special in it.. Just like that...for the heck of it.
It sounded pretty simple ...recompiling it and running it again like any regular java file... However that never happened. I compiled and recompiled the java file copied it into the com.example.web directory of Tomcat - but some how it never displayed the changes I made.
Changes to html files or jsp files will be reflected, how ever you'll need to reboot the server for class files. If you want Tomcat to look for changes in your class files too, you'll have to set a property called "reloadable" to true in the Context. Check this document.