Answer Posted / 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 View All Answers
what is handle?
Should synchronization primitives be used on bean methods?
What are the different algorithms used for clustering?
What are the design considerations while making a choice between using interface and abstract class?
why static class in java
What is clustering? What are the different algorithms used for clustering?
What if the static modifier is removed from the signature of the main method?
How would you create a button with rounded edges?
Name three component subclasses that support painting?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
Difference between swing and awt?
What is the relationship between local interfaces and container-managed relationships?
What is a modular application? What does module-relative mean?
What is the purpose of the wait() method?
What is Stream Tokenizer?