This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60814
    
  65

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.
 
wood burning stoves
 
subject: recognization of JSP page Change by tomcat
 
Similar Threads
Step-by-step Installing Tomcat4 in Windows NT/2000 Server
jasper report and maven dependencies
Why jsp compiler creates exception(jasperException)during compile time,but incase of javac its not?
translated jsp
JSP Translation Phase