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 do you mean by web applications? Explain web application directory arrangement?
Name the packages that work with servlet?
Can we use threads in Servlets?
Is servlet a server side scripting language?
Explain the working of service() method of a servlet.
What is servlet instance?
What is dispatcher servlet?
Why do we have servlet filters?
What is a cookie What is the difference between session and cookie
List out the difference between ServletConfig and ServletContext?
What do you mean by session tracking?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Explain jsessionid?
What do you mean by servlet context?
Why is a constructor needed in a servlet even if we use the init method?