IT Placement Papers JAVA JSP
This category contains JSP Interview Questions and Answers
Search by tag : Java Interview Questions, JSP Interview Questions |
What are the life-cycle methods of JSP?
|
|
|
|
|
Life-cycle methods of the JSP are:
a) jspInit(): The container calls the jspInit() to initialize the servlet instance. It is
called before any other method, and is called only once for a servlet instance.
b)_jspService(): The container calls the _jspservice() for each request and it
passes the request and the response objects. _jspService() method cann't be
overridden.
c) jspDestroy(): The container calls this when its instance is about to destroyed.
The jspInit() and jspDestroy() methods can be overridden within a JSP page.
Related items
Only registered users can write comments. Please login or register.
|