Answer Posted / ravikiran(aptech mumbai)
1).container will find the web.xml
2).container parses the web.xml
3).creates the instance of servlet using
class.forname(classname).newInstance()
4).preinitializes the servlet with the entry known as
<load-on-startup>
5).Initializing the servlet instance using
init(ServletConfig config) method
6).Container creates request and resonse objects and finds
that the requested resource is a servlet and invokes a new
thread for the particular request
7).Calls doGet() or doPost() inaccordance with the method
decared inside html
8).And passes the request and response objects into the
doGet() or doPost()
9).And with the help of response object the response is ent
back to the client
10).destroy() method call will cleanup the resources
11).the thread will go into a pool
12).The request and response objects will be sent to an
output stream
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Can you use javascript in servlets?
Which event is fired at the time of setting, getting or removing attribute from application scope?
How is an application exception handling is done using a servlet?
What is the procedure of invoking different servlet in a different application?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
How can I send user authentication information while making URL Connection?
Explain servlet events?
What is httpservlet class?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is cgi?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
How many servlet objects are created?
What is the difference between get and post methods?
How to get the current httpsession object?