Tuesday, November 6, 2012

How to jsp is process in web application ?


Here we discuss how a jsp page is processed in web application when it is requested by the users-



1. First time JSP page is loaded by the JSP container which is also called jsp engine(Where the JSPs complied) .Here the Jsp generated and complied java code which is called  servlet code . This code is loaded in servlet engine. This process is occurs on translation time . It is important to note that this occurs only the first time when jsp is requested.

              By this process there will be slow response time for first page.
2. When the page is modified, is automatically reloaded and recompiled  by the container when the page request is occurs.  This process is occurs on run time.

There are three major life event methods -
 jspInit().
 jspService(request,response).
jspDestroy().



In most cases the jspInit() and jspDestroy() methods don't need to be provide developer.


For Further Reading,
General, Java, jsp

0 comments:

Post a Comment


 

Site Status

Man Behind Technical Today

Hello, I am Navin Bansal. I am a student of MCA in Rajsthan Institute of Engineering and Technology and owner of this blog. I share my view and ideas among people.