1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What are the lifecycle of JSP?

Discussion in 'JSP' started by Mannu, Apr 5, 2011.

  1. Mannu

    Mannu Banned

    Joined:
    Mar 3, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    SEO executive
    Location:
    New Delhi(india)
    Home Page:

    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.
     

Share This Page