Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / dipak.cvrca

-->first request comes from client browser to server
(container)which takes the control to the web.xml file.

-->in xml file servlet file(.class) will be searched
according to the information about the url pattern given
in the address,then coresponding class file is loaded to
the container(loading) by the method
java.lang.class.forName().newInstance.

-->now container call the init(servletConfig) method to add
necessary headers in the servlet,such as Config,context
session,request and many more.

-->now control pass to the service()of the HttpServlet(if
you have extended this class) and the type of method
(get/post) is checked and accordingly the control will
pass to the implemented doGet() or doPost() of the your
class(by the dynamic method dispatch)

-->after service the container will call the destroy() of
Servlet class.
i hope this answer will satishfy you,thank
you,(Dipak ku. jenamani)

Is This Answer Correct ?    95 Yes 7 No

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

Answer / 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

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

Answer / puli

when the request is go the server webcontainer creates
request object and response object after that service
method will be called passed request and response objects
as a parameters.
Next request and response objects are destroyed.
Thanks
Puli mama

Is This Answer Correct ?    4 Yes 0 No

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

Answer / 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

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

Answer / lucky

Servlet: is used to create web tech,its based component to create web app ,its a server side component, its a java obj which implements directly or indirectly implemented by Servlet interface , its a singleton obj and multithreaded model and security, its an interface having abstract methods init , service ,destroy, config , info and these inti ,service , destroy are life cycle method, remain are programmer initialized ,whn user send a req to peticular serlet req reach to server thne server jvm check url pattern in deployment descriptor file then it find url server take url and check with the corresponding servlet if its finds that servlet then server jvm wil create servlet obj then it will cal life cycle methods and son ........................

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is a java servlet?

0 Answers  


java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null while working with struts it displayed pls very ungent

3 Answers   IBM,


Which exception is thrown if the servlet is not initialized properly?

0 Answers  


When a servlet accepts a call from a client, it receives two objects. What are they?

0 Answers  


What's the servlet interface?

0 Answers  


Why doesn’t a servlet include main()?

0 Answers  


What are important features of Servlet 3?

0 Answers  


What is called servlet mapping?

0 Answers  


What’s the difference between genericservlet and httpservlet?

0 Answers  


What is use of parseQueryString ?

1 Answers  


init() method of servlet loaded by?

3 Answers  


What is servlet in simple terms?

0 Answers  


Categories