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 rmic?

4 Answers  


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  


what are memory considerations of jsp compares to other web components?

0 Answers   TCS,


Explain the life cycle of servlet?

3 Answers   Cognizant, HCL,


What are the advanatages of RMI ?

1 Answers   HGS,






Can I run seam with jdk 1.4 and earlier?

0 Answers  


When is the best time to validate input?

0 Answers  


Can we define constructors in Servlet?

3 Answers   Accenture, Opus, Wipro,


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

0 Answers  


What is jboss?

0 Answers  


difference between apllet and interface class

1 Answers   Infotech,


java is fully object oriented languages or not? why?

12 Answers   HCL,


Categories