Step 12- JSP Life cycle

Learn with our youtube video –

JSP Life cycle-

StageDescription
TranslationThe JSP file is translated into a Java file (also known as a servlet) by the JSP engine.
CompilationThe generated Java file is then compiled into a class file by the Java compiler.
Class LoadingThe class file is loaded into the JVM by the class loader.
InstantiationAn instance of the servlet is created by the JSP engine.
init()The init() method is called to perform any initialization required by the servlet.
service()The service() method is called to process requests and generate a response.
destroy()The destroy() method is called to perform any cleanup before the servlet is destroyed.