I have been using JSP,Servlet for quite sometime. I know that whenever we change anything in Servlet we need to restart Tomcat Server to get the changes. Where as in case of JSP change, tomcat does not require restart.
As per my knowledge JSP page gets converted into Servlet only when compiled. So, after all its a Servlet.So, How does it works without Tomcat restart.
I have knowledge of cases when a JSP page gets compiled like on first time access after server restart etc.
Because by default tomcat is started in development mode, which means JSP-derived servlets recompiled when a change is detected. It’s a good questions how does the JVM load the new class – probably the tomcat classloader is configured to do so.
A few related notes: