when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?
Answer Posted / pavankumar
when we deploy the web application.the server reads the contents from configuration file(web.xml file) and server checks whether corresponding servlet object is created or not if it is created the server does'nt creates if it is not there then it create
before that when we deploy the web application ServletContext is created.
After the creation of servlet object .then servletConfig is created for that corresponding servlet.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What’s the difference between sendredirect and forward methods
What exception should be thrown when servlet is not properly initialized?
What exactly are the functions of servlet?
How do we go with database connection and log4j integration in servlet?
What are common tasks performed by Servlet Container?
What are the key methods that are involved in processing of http servlets?
How do you invoke a servelt?
How can we achieve transport layer security for our web application?
What is http servlet in java?
How do I use cookies to store session state on the client?
What is the servlet?
Explain the working of service() method of a servlet.
What are the steps that are required to handle the multi-threading?
Why don't we write a constructor in a servlet?
What do you mean by cgi?