Two Laptop Bag*
The moose likes JSP and the fly likes Translation and compilation happens only ONCE page:308 HFSJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Translation and compilation happens only ONCE page:308 HFSJ" Watch "Translation and compilation happens only ONCE page:308 HFSJ" New topic
Author

Translation and compilation happens only ONCE page:308 HFSJ

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi All,
This page says:"When you deploy a web app with a JSP, the whole translation and compilation step happens only once in the JSP’s life. Once it’s been translated and compiled, it’s just like any other servlet. And just like any other servlet, once that servlet has been loaded and initialized, the only thing that happens at request time is creation or allocation of a thread for the service method. So the picture on the previous two pages is for only the first request.".

Please tell me , while the application is running if i will change the .jsp file in the temp folder (as i am using JBoss)., will it be directly be converted by jsp container to .class file or it still follows same translation-compilation process.
I believe it will follow the same life cycle process.

Thanks,
Amarshi


SCJP (97%), SCWCD (95%))
dileep keely
Ranch Hand

Joined: Jun 28, 2010
Posts: 91
It follows same translation-compilation process.Adding on translation involves syntax checking(failing wich results into 500 errorcode).
 
GeeCON Prague 2014
 
subject: Translation and compilation happens only ONCE page:308 HFSJ