• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp page modified

 
pankaj patil
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you application server is webLogic then it will use following method to detect the change

weblogic.servlet.jsp.StaleChecker..isResourceStale();
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic