Why am i not seeing the most recent updates made to the servlet, from my browser even though i am clicking on Refresh button and removed all the cache from the browser?
This is actually one of the features of Servlet. The first time when the Servlet is invoked, then the init() method is called. So once the Servlet is loaded into memory, it will stay there until the server is restarted. According to specs, the Servlet should reload itself when there is a change in the code or new class is created. But because of performance reasons, most of the Servers don’t check for this option and the Same old Servlet is used which is currently in memory for all requests. In JRun, you need to click on the restart button. Any other solutions to this one are welcome. Tomcat requires you to just replace the WAR file.
Related Questions
- Why am i not seeing the most recent updates made to the servlet, from my browser even though i am clicking on Refresh button and removed all the cache from the browser?
- Why does the browsers REFRESH button cause the application to return back to the welcome page?
- Why is it better to click on the REFRESH image instead of using my browsers button?