File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet program always show same result after modifing

 
nikhil agrawal
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What servlet container are you using?

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.
 
nikhil agrawal
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i am using apache TomCat 4.0
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 4?!

In any case--have you redeployed the servlet class?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic