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 |
Explain bind(), rebind(), unbind() and lookup() methods?
What are the advanatages of RMI ?
What is ioc concept & explain it?
Can we define constructors in Servlet?
3 Answers Accenture, Opus, Wipro,
Do I need to import javlang package any time? Why ?
What is a layout manager?
How database connectivity in XML is achieved?
what about static?
Difference between new operator and class.forname().newinstance()?
When is the best time to validate input?
What is checkpoint? How to create checkpoints in our java projects?
What are skeletons and stubs and how they are generated?