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

If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.

2 Answers  


What is the RMI and Socket?

0 Answers  


Define the remote object implementation?

0 Answers  


What is the difference between a static and a non-static inner class?

0 Answers  


what is catalina in tomcat server.

11 Answers   IBM,






What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


Why doesn’t the focus feature on the tag work in every circumstance?

0 Answers  


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  


What is source and listener?

1 Answers  


what is a non-repeatable read?

0 Answers  


What modifiers may be used with an inner class that is a member of an outer class?

0 Answers  


What is ioc concept & explain it?

0 Answers  


Categories