Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


what is the life cycle of jsp?



what is the life cycle of jsp?..

Answer / malligontla

THe generated servlet class for a JSP page implements the
HttpJspPage interface of the javax.servlet.jsp package.
HttpJspPage interface extends the JspPage interface which
inturn extends the Servlet interface of the javax.servlet
package. the generated servlet class thus implements all the
methods of the these three interfaces. The JspPage interface
declares only two mehtods - jspInit() and jspDestroy() that
must be implemented by all JSP pages regardless of the
client-server protocol. However the JSP specification has
provided the HttpJspPage interfaec specifically for the JSp
pages serving HTTP requests. This interface declares one
method _jspService().

The jspInit()- The container calls the jspInit() to
initialize te servlet instance.It is called before any other
method, and is called only once for a servlet instance.

The _jspservice()- The container calls the _jspservice() for
each request, passing it the request and the response objects.

The jspDestroy()- The container calls this when it decides
take the instance out of service. It is the last method
called n the servlet instance.

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

what is activation monitor and what is its job?

1 Answers  


What is the priority of Garbage collector thread?

3 Answers  


what are the activation groupworks?

0 Answers  


I wantr to know, How many number of users logged in to website? can any one answer

7 Answers   Cap Gemini,


What will happens, when a thread cannot acquire a lock on an object?

2 Answers  






how to search the pertical objects in a Collections

3 Answers   iGate,


In a multitiered application which tier is the browser in?

3 Answers   Adobe,


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


what is singleton class? where it mainly used in the projects?

5 Answers   Satyam, Wipro,


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


Explain phantom read?

0 Answers  


difference. between List and Set?

2 Answers   Campus Interaction, HCL, Infotech,






Categories