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 is meant by a servlet?

611


What is servlet in simple terms?

574


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

568


What is servlet and list its types?

546


How can you run a servlet program?

604






What is meant by session? Tell me something about httpsession class?

605


Differentiate between get and post?

684


Write a simple servlet program to print the contents of html.

553


What do you mean by a filter and how does it work?

543


How are filters?

587


What are all the protocols supported by httpservlet?

653


Explain the lifecycle of a servlet?

512


Differentiate between the web server and application server?

565


What is servlet? Explain

584


What is the need of servlet filters?

544