Hi all, It is understood that the container checks the last modified timestamp for a jsp page and then loads it. Which means, if i modify a jsp today, which was written and tested yesterday, the container will check for the lastmodifiedDate and recompile the jsp to give new output. This works fine.
Suppose i back date the system date and change the jsp, the new output is not shown.. Does this mean, that the web container only checks for the timestamp and has no other way of knowing that a jsp page has been modified??
is it then not a danger that my new jsp pages will not come into effect, in case i back date my system..???
Hi Chay, The container is least bothered about timestamps.From my understanding every JSP page is compiled whenever it is changed. The timestamp of the JSP hardly matters.It is the containers problem, it compares the jsp with the already compiled servlet to check for differences whenever it is turned on. Probably the first hit takes time for the very same reason that it gets recompiled. Shoot if u have any more questions.
Whether JSPs get recompiled, and indeed how the container detects the change, is container specific. Having said that, none of the containers I'm familiar with actually compare the JSP contents; they simply detect changes in the last modified time.
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd