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

Why does the tag url-encode javascript and mailto links?

0 Answers  


If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?

1 Answers  


What is RMI Registry?

6 Answers   Siemens, United Software Solutions,


When a thread blocks on i/o?

0 Answers  


What is the return type of interrupt method?

2 Answers  






the same information whether it will connect to the database or it will be used previous information?

0 Answers  


How to implement RMI in Java?

0 Answers   TCS,


What is Bootstrapping in RMI?

1 Answers  


What is the difference between the font and fontmetrics classes?

0 Answers  


how convert java file to jar files?

10 Answers   Samsung,


Do I have to use jsps with my application?

0 Answers  


What is ripple effect?

0 Answers  


Categories