Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Phases of JSP page

 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm sure someone would write here about this query. I wanna know :
1. what are the steps/events that occur during the translation, compilation & request phases of a JSP page.
2. The difference b/w these phases...
3. what is the ordering that is followed for these phases ?
I know I'm going out of control but I've to achieve this certification...
 
Mauricio Silva
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. The Translation Phase includes the following and is initiated either (1) when the first request for a new or updated JSP page is received, or (2) at deployment time, depending on the application server
1.1. Page Translation: The JSP page is translated into Java servlet code.
1.2. JSP Page Compilation: The servlet code is compiled into a JSP page implementation class.
2. The Execution / Request-Processing Phase includes the following and is the same as for a regular servlet.
2.1. Load Class: The JSP page implementation class is loaded by the JVM.
2.2. Create Instance: The JSP page implementation class is instantiated.
2.3. Call jspInit: jsp_init() is invoked when the JspPage is initialized. At this point getServletConfig() will return the desired value.
2.4. Call _jspService: _jspService corresponds to the body of the JSP page. This method is defined automatically by the JSP processor and should NEVER BE DEFINED BY THE JSP AUTHOR.
2.5. Call jspDestroy: jsp_destroy() is invoked when the JspPage is about to be destroyed.
(Copied of Miftah Khan Study Guide)
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!