Explain life cycle of a Servlet?
Answers were Sorted based on User's Feedback
Answer / janet
1. a server loads and initializes the servlet by init()
method.
2.the servlet handles zero or more client's requests
through service() method .
3. the server removes the servlet through destroy() method.
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / venky
the object of servlet is created in the init mehod by server
request of the client is processed in service method
the servlet is discarded from thr server by destroy method
Is This Answer Correct ? | 1 Yes | 0 No |
What is servlet looping or chaining?
What do you mean by httpservlet?
Is there any need to shutdown the web server, if you want to modify a servlet?
when you comppile the servlet is it neccesary to restaet the tomcat server?
How can we perform any action at the time of deploying the project?
What is servlet and list its types?
What do you mean by interservlet communication?
What is meant by cookies?
What do you mean by the servlet chaining?
What is a generic servlet?
Name the webserver that is used to run Servlets?
How the servlet is loaded?