Home » Interview Questions » JSP Interview Questions » Explain the life cycle methods of a JSP?
 

Explain the life cycle methods of a JSP?

  • JSPs Pre-translated: Before the JSP file has been translated and compiled into the Servlet.
  • JSPs Translated: The JSP file has been translated and compiled as a Servlet.
  • Initialized: Prior to handling the requests in the service method the container calls the jspInit() to initialize the Servlet. Called only once per Servlet instance.
  • Servicing: Services the client requests. Container calls this method for each request.
  • Out of service: The Servlet instance is out of service. The container calls the jspDestroy() method.


Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code: