eclipsejsptomcatdcevm

JSP changes are not reloading in Tomcat without restart


I have a Dynamic Web Java-Spring Project setup in Eclipse running with DCEVM (a Java virtual machine that allows code to be hotswapped into a web environment). I set this up with Eclipse. It works(!) as making changes to Java files automatically appear on browser refresh.

My question: how do I get the same behavior with my JSP files? When I edit these files in Eclipse they do not update in Tomcat. I currently run an ant task to copy them into my Tomcat directory, but was wondering if there was an alternative.


Solution

  • Jsp files are automatically recompiled after modification. This is standard behavior. But they must be in deploy directory. So if you modify source jsp then it is necessary to copy them to tomcat.