File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

jsp page modified

pankaj patil
Ranch Hand

Joined: Dec 19, 2004
Posts: 98

this is an interview question

how does server comes to know that jsp page is modified

with regards
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: 3640
If you application server is webLogic then it will use following method to detect the change


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.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: jsp page modified
It's not a secret anymore!