This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jsp page modified
It's not a secret anymore!