what is the control flow in servlet when we send a request?

Answer Posted / ravikiran

when we are requesting a particular resource in the
server,the comiled class will be loaded into the container
calls the no-arg constructor and init() then the container
will create request,response objects and pass it to the
corresponding doXXX() method based on the http method of the
form,allocates a thread and do the business logic and send
the response back to the client by sending the thread to a
connection pool and destroying the request and response objects

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by default initialization in java servlet?

880


Elucidate servlet attributes and its scope?

767


What are life cycle methods of a servlet?

800


What is Request Dispatcher?

1083


Explain mvc pattern.

788


How can we upload the file to the server using servlet?

771


Describe in brief RequestDespatcher?

848


What is servlet container. how it works?

891


What is servlet collaboration?

890


How to upload a file to the server using servlet?

754


What is servlet and its life cycle?

858


What is the difference between Servlets and Applets?

765


What are the types of protocols supported by httpservlet ?

952


How httpservlet is different from the genericservlet?

810


What are its drawbacks of cgi?

800