Any JSP page is compiled into Java by the tomcat engine. It decides to do this if there is no java code available in the work area or the date and timestamp of the source file is later than the current available compiled version. However this last check is only relevant if the tomcat is put into dev mode. If you type "tomcat" into the WHC then it gives you the command. As it has a very slight overhead (really nothing) a production system should never be put in dev mode, when we deploy new or updated JSP our install process deletes the tomcat cache for the pages concerned, Deleting the whole work directory is another option but it requires the tomcat engine to recompile all pages that mean a few moments waiting for each page the first time it is used.
Here is the extract from the WHC
Regards,
Simon
Running Tomcat in Development Mode
To change to development mode:
- Start a windchill shell and change to the Tomcat installation directory.
- Enter the following command: ant -f config.xml configureJspEngine -Dmode=dev
After development is complete, return to normal operation by entering
ant -f config.xml configureJspEngine -Dmode=prod