Answer Posted / prashant
1> Server loads the servlet.
2> Server creats one or more instances of the servlet
3> Server calls the init()method of each Servlet instance
4> Servlet request is received
5> Servlet service()method processes the request
6> Servlet calls the service()method of the servlet instance
7> Servlet service()method then process the request & send
the output to the client
8> Servlet waits until next request is received (if yes
continue from step no-4 )
9> Servlet is unloaded by the server by calling the destroy
()method
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the difference between context parameter and context attribute?
What is the difference between Servlets and Applets?
What is the importance of init() method in Servlet ?
What is load-on-startup in servlet?
How can we upload the file to the server using servlet?
What is httpservlet class?
What are the various ways of session supervision in servlets?
Explain the different ways for servlet authentication?
What are the types of servlets? Explain
Which are the different ways you can communicate between servlets?
When Servlet is unloaded?
What do you mean by default initialization in java servlet?
What is the difference between the servlets and cgi programs?
What is meant by cookies?
Which java application server is the best?