JSP
container is responsible for handling request that comes to a JSP
page. JSP container handles the request in two phases.
a.
Translation Phase
b.
Processing phase
Whenever
a request comes for a jsp page, Application server handed it over to
JSP container. JSP container is responsible for handling the request.
Translation
phase
JSP
container translates the jsp page into a servlet file by converting
all the template data to corresponding println statements and jsp
data to corresponding java code. Once the .java file generated, then
it compiles and make the '.class' file.
Processing
Phase
Executing
the .class file is comes under processing phase.
When
the request comes first time for this jsp, then translation and
processing phases performed. For the subsequent requests only
processing phase performed, until there is change in jsp file.
Whenever JSP container detects there is a change in jsp file, then it
performs translation phase automatically.
No comments:
Post a Comment