Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Phases of JSP page

 
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...
 
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)
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic