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
Can we use the constructor, instead of init(), to initialize servlet?
How to create war file?
Why jsp is better than servlet?
Why session tracking is needed?
Difference between doget and dopost?
Explain servlet events?
Given the request path below, which are context path, servlet path and path info?
If some new data has entered the database, explain how can a servlet refresh automatically?
Explain the servlet context.
How would you create deadlock on your servlet?
Why do we need a constructor in a servlet if we use the init method?
What are the advantages of Servlet over CGI?
What is the structure of the http response
How to notify an object in session when session is invalidated or timed-out?
How will you pass values from HTML page to the servlet?