servlet program always show same result after modifing
nikhil agrawal
Greenhorn
Joined: Apr 04, 2010
Posts: 3
posted
0
when I edit my servlet program after 1st run, code result can't show edit result but show result of previous code,which is code widout modification. Why I can't see result of modified code
Servlets get loaded once, either at startup or the first time they are hit (depending on how you've configured them in web.xml).
If you restart your application or container, you will see the new version.
Some containers such as Tomcat have an reloadable attribute that you can configure which will cause the application to automatically reload itself if a loaded class file is updated.