Originally posted by sreejith sree:
tomcat will constantly moniter the java server pages deployed in the web-inf directory for changes.
when ever a new page is requested, every time , jsp page will compile to corresponding servlets , a java class file , and dump the output as raw html,
you can change the jsp at run time , but cant change the servlet class at run time , i think, i want to work on this matter ,
A few corrections.
There is no "web-inf" directory.
Java is a case sensitive language and that directory is spelled "WEB-INF".
This might sound like nit picking but it throws a lot of beginners off so I point this out whenever I see it.
when ever a new page is requested, every time , jsp page will compile to corresponding servlets , a java class file , and dump the output as raw html,
This is not true.
JSPs are only compiled to servlet code once in the life of the application unless the JSP file has been altered. The output, is not necessarily HTML.
Also, many containers have settings to automatically reload the app if any class files are updated. Tomcat does this with the autoReload attribute of the Context entry. With Tomcat, you can also configure it to watch any file for changes and automatically reload the application. I believe Resin can be configured to watch Java source files and automatically compile them with an app reload when they change.