Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recognization of JSP page Change by tomcat

 
Joshi Nirav J
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I got fantastic response from all you guys...

i have one question in my mind.

As we all know that
whenever we put any JSP page in our Apache tomcat then the tomcat's jasper engine will going to translate that jsp into servlet and compile it then finally gives output to client-side.

But whenever we will get change into the JSP page again the tomcat's jasper engine do as i mentioned above.

How will the tomcat's jasper engine recognize that change in the JSP ?

Can anyone one show that specific or couple of files available in the tomcat which get enable to perform this task ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It just compares timestamps.
 
Joshi Nirav J
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot David....
But cab you give me more details on it ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure what other details to give--what do you want to know?
 
Joshi Nirav J
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
I mean
If possible then can you give me some internal details ?
like how would the jasper engine code realize that ohh this file is change now i will like to re-compile it .... ?

One more doubt,
I realize that at the request time only the jasper engine will get the realization of the change ....

is it true ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you should download the Tomcat source code.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I told you--it checks the timestamp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic