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 |
Why servlet is used as controller ? Not JSP? I want complete explation?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Difference between forward() method and sendredirect() method ?
How can you push data from an Applet to a Servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
How to handle the debug errors in servlets?
how to pass parameter from servlet to html form
What is URL Rewriting ?
What do you mean by cgi and what are its drawbacks?
What is the difference between 2 types of servlets?
What is meant by servlet? What are the parameters of the service method?
What's the use of servletcontext?