• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Another custom tag question

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic