Answer Posted / ravikiran(aptech mumbai)
1).container will find the web.xml
2).container parses the web.xml
3).creates the instance of servlet using
class.forname(classname).newInstance()
4).preinitializes the servlet with the entry known as
<load-on-startup>
5).Initializing the servlet instance using
init(ServletConfig config) method
6).Container creates request and resonse objects and finds
that the requested resource is a servlet and invokes a new
thread for the particular request
7).Calls doGet() or doPost() inaccordance with the method
decared inside html
8).And passes the request and response objects into the
doGet() or doPost()
9).And with the help of response object the response is ent
back to the client
10).destroy() method call will cleanup the resources
11).the thread will go into a pool
12).The request and response objects will be sent to an
output stream
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is http servlet?
Explain the difference between a web server and a web container?
What do you mean by request dispatcher in servlet?
What is servlet name in web xml?
What are the different methods involved in the process of session management in servlets?
What's the difference between authentication and authorization?
What do you mean by default initialization in java servlet?
What is cookie in servlet?
What is the inter-servlet communication?
Can we use the constructor, instead of init(), to initialize servlet?
why we should override only no-agrs init() method.
Explain the difference between servlet and cgi?
What do you mean by servlet context?
How can you run a servlet program?
What is the difference between context parameter and context attribute?