aspose file tools*
The moose likes JSP and the fly likes jsp page modified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp page modified" Watch "jsp page modified" New topic
Author

jsp page modified

pankaj patil
Ranch Hand

Joined: Dec 19, 2004
Posts: 98
hi

this is an interview question

how does server comes to know that jsp page is modified

thanks
with regards
pankaj
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
I guess, a class loader is created for each web application that is deployed.

Moreover, in Tomcat we can configure it like RELOAD-ON-CHANGE. Then it loads the classes/jsps whenever it finds some change in those.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
If you application server is webLogic then it will use following method to detect the change

weblogic.servlet.jsp.StaleChecker..isResourceStale();


My blood is tested +ve for Java.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Depending on the server, but generally, the server should have a method that compares the timestamp of the servlet class generated from the JSP to the timestamp of the raw JSP file. If the latter is more current, then there is a change, and it will go through the translation and compilation phase again.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp page modified