When a request is mapped to a JSP page for the first time, it translates the JSP page into a servlet class and compiles the class. It is this servlet that services the client requests.
A JSP page has seven phases in its lifecycle, as listed below in the sequence of occurrence:
a)Translation b)Compilation c)Loading the class d)Instantiating the class e)jspInit() invocation f)jspService() invocation g)jspDestroy() invocation |