Whenever there are somechanges made in JSP page(Jsp page is run first time), JSP engine converts that page to servlet file, otherwise(when no changes made) it directly refers to earlier converted servlet. Hence my question is, How JSP engine knows that there are changes made in JSP page(to reconvert it in new servlet OR refer old converted file).
JSP engine recompile the jsp in case u change the jsp file with respect to the timestamp in it.else it refers to the older servlet. hope this heps u smitha :roll:
Joined: Jul 21, 2004
Thats okey...But If I make changes in JSPs frequently... Then how JSP engine will come to know that there are changes made in that JSP so that It should recompile that page again, irrespective of the time of timstamp. (Beacause JSP engine will not recompile the page till there is any changes made in that page or till the time of compilation has not occured, right !!!)
Joined: Jun 21, 2003
Hello I think ur asking the same question again and i have answer it. It refers to the timestamp of the jsp page when the page is request by the user and acc the page is received.
Whenever a call goes to the JSP page it will compare with the already compiled JSP (JSP_Servlet) these changes are maintained with in webserver.
If there exists any changes then it recompiles other wise it doesn't...
There is a setting in server.xml reload set to 'true' or 'false' by default it is set to true value thus it allows frequent recompiling possible its okay with development server but it will have serious performance issue with production servers that is why it is set to false... thus improving the performance....
subject: Question on Changes made in JSP to convert in servlet