wood burning stoves*
The moose likes Tomcat and the fly likes recognization of JSP page Change by tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "recognization of JSP page Change by tomcat" Watch "recognization of JSP page Change by tomcat" New topic
Author

recognization of JSP page Change by tomcat

Joshi Nirav J
Greenhorn

Joined: Jan 30, 2010
Posts: 7
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 ?


Thanks and Regards
Nirav Joshi
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It just compares timestamps.
Joshi Nirav J
Greenhorn

Joined: Jan 30, 2010
Posts: 7
Thanks a lot David....
But cab you give me more details on it ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not really sure what other details to give--what do you want to know?
Joshi Nirav J
Greenhorn

Joined: Jan 30, 2010
Posts: 7
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

Joined: Jan 10, 2002
Posts: 61451
    
  67

Perhaps you should download the Tomcat source code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I told you--it checks the timestamp.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: recognization of JSP page Change by tomcat