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...
posted 14 years ago
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 Javaservlet 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