Tuesday 4 August 2015

JSP Life Cycle



JSP is a server side scripting language. JSP is used to develop web applications. We can do everything on JSP which we can do with Servlet. In JSP we can add the Java code inside the HTML tags.


There are three service methods provided by JSP:
  1. public void jspInit()
  2. public void _jspService(HttpServletRequest request, HttpServletResponse response)
  3. public void jspDestroy()



Following is the Life-cycle of JSP :
  1. Parsing JSP : JSP page is first compiled for the syntax or other errors.
  2. Translation from JSP to Servlet : After successfully parsing, the JSP is translated to the Servlet or Java file.
  3. Compiling the Servlet : In this phase converted Servlet is compiled to class file.
  4. Class Loading : Loading the Servlet class into memory.
  5. Installation : Creating Servlet instance in memory.
For full blog about JSP Life Cycle visit FindNerd.
You can also find such more blogs related to Java at our Java Developers community section.
If you have any queries related to java,you can also post it on java questions and answers forum of FindNerd.

No comments:

Post a Comment