Forums Register Login

Decesion to compile JSP?

+Pie Number of slices to send: Send
Hi,

I have one doubt. Suppose I am running a dynamic web application on my machine. I have modified one of the jsp, and now I am trying to access this jsp from internet browser from application, how does server takes a decesion to compile this jsp???

Cheers
Ashwin
+Pie Number of slices to send: Send
Once you changed the JSP that is currently running,Container automatically knows(thru some mechanism thats is vendor dependent) and at next request it generates a update servlet file,compiles and execute the updated one.
+Pie Number of slices to send: Send
Thank you for replying. Actually I was eager to know how the server understands that its time to recompile the JSP...
+Pie Number of slices to send: Send
Most likely it looks at the last modified date of the JSP file. If that is later than the date on the class file, then it's time to recompile. Tomcat keeps the generated source and class files in the "work" directory.
+Pie Number of slices to send: Send
Actually I thought of the same solution. But then thought of one scenario where it will fail. If I back date my machine and then change a JSP and save it, then JSP timestamp will be older than its class file timestamp.... And this JSP will never be compiled.
+Pie Number of slices to send: Send
Well, if you change the date on a machine, other things will stop working, too. CVS, e.g., looks at file timestamps as well. Tomcats JSP implementation does indeed break if you change the clock. But that's hardly a bug, more like a deliberate breakage.
+Pie Number of slices to send: Send
You could also blow the machine up with dynamite and it will stop working.
+Pie Number of slices to send: Send
 

Originally posted by Bear Bibeault:
You could also blow the machine up with dynamite and it will stop working.



Is there a workaround for this bug?
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
 

Originally posted by Ben Souther:


Is there a workaround for this bug?



Yes, it involves ablative armor and, optionally, force field technology.
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1103 times.
Similar Threads
Unable to compile class for JSP error
which pattern to use
Mindtree
jasper Exception: unable to compile JSP
can some one help me? very confuse for the exam
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:40:38.