• Post Reply Bookmark Topic Watch Topic
  • New Topic

Another custom tag question

 
Howard Ralston
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I finally figured out how to get my sample custom tag to work. My question now is this: When I change my java class, even a minor change such as adding a word to the end of a string that will be printed out on the screen, I then recompile it. Then I try to refresh the JSP page in the IE browser but there is no change. The only way I can see the change to the class is if I shutdown Tomcat, restart it, then refresh the JSP.
How can I (or can I) make my changes to the class without having to shutdown Tomcat to make them effective?
I am running Tomcat 4.0.3 on Windows 2000 with a cable Internet connection.
Thanks,
Howard
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there are classloaders for each web application that we host and they are not configured to do a reload everytime a java class file changes. So looks like there is no alternative to restarting tomcat.
yeah jsps are handled in a differnt way though. imean as you must be knowing they are reloaded when changed.
But somebody might have a different answer.
 
Howard Ralston
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Karthik, I had hoped I was missing something, but if I need to restart Tomcat, then that is what I will do!
Howard
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Howard Ralston:
How can I (or can I) make my changes to the class without having to shutdown Tomcat to make them effective?

Have you tried just touching the .jsp? By 'touching', I mean setting the timestamp to be something later than the last time the .jsp was accessed. If you have direct access to the directory where the webserver stores the .jsp, just use NOTEPAD or vi to load and save the file.
Is your .jsp inside a .war (or .ear) file? Take it out until your testing is complete. Then deploy inside a .war. Or touch the .jsp files before you jar up the .war file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!