When presented with JSP page the JSP engine does the following 7 phases.
  • Page translation: -page is parsed, and a java file which is a servlet is created.
  • Page compilation: page is compiled into a class file
  • Page loading : This class file is loaded.
  • Create an instance :- Instance of servlet is created
  • jspInit() method is called
  • jspService is called to handle service calls
  • jspDestroy is called to destroy it when the servlet is not required.