Feeds:
Posts
Comments

Archive for the ‘JSP’ Category

JSP page life cycle

JSP:-

When first time a JSP page is request necessary servlet code is generated and loaded in the servlet container.
Now until the JSP page is not changed the compiled servlet code serves any request which comes from the browser.
When you again change the JSP page the JSP engine again compiles a servlet code for the same.

  • JSP page is first initialized by jspInit() method. This initializes the JSP in much the same way as servlets are initialized,

when the first request is intercepted and just after translation.

  • Every time a request comes to the JSP, the container generated _jspService() method is invoked, the request is processed,

and response generated.

  • When the JSP is destroyed by the server, the jspDestroy() method is called and this can be used for clean up purposes

Read Full Post »

JSP Process

JSP:-

When first time a JSP page is request necessary servlet code is generated and loaded in the servlet container.
Now until the JSP page is not changed the compiled servlet code serves any request which comes from the browser.
When you again change the JSP page the JSP engine again compiles a servlet code for the same.

  1. √ JSP page is first initialized by jspInit() method. This initializes the JSP in much the same way as servlets are initialized,
    when the first request is intercepted and just after translation.
    √ Every time a request comes to the JSP, the container generated _jspService() method is invoked, the request is processed,
    and response generated.
    √ When the JSP is destroyed by the server, the jspDestroy() method is called and this can be used for clean up purpose

Read Full Post »