This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Translation and compilation happens only ONCE page:308 HFSJ
 
Similar Threads
Page Translation and JSP Compilation Sequence
Transalation / Compilation
Life cycle of jsp?
pre compilation of JSP file
number of instances of JSP