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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between genericservlet and httpservlet?

526


What are session variable in servlets?

562


What is servlet in tomcat?

557


If some new data has entered the database, explain how can a servlet refresh automatically?

733


What is http servlet in java?

556






Why don't we write a constructor in a servlet?

586


What is servlet used for?

694


Why is a constructor needed in a servlet even if we use the init method?

602


What is the difference between Server and Container?

618


What are the objects involved when a servlet receives a call from client?

545


Write a program to show the functionality of servlets.

553


What is the difference between the http servlet and generic servlet?

601


Servlet is pure java object or not?

719


What is the procedure for initializing a servlet?

543


What is the difference between Difference between doGet() and doPost()?

754