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


Please Help Members By Posting Answers For Below Questions

What’s the difference between sendredirect and forward methods

570


What exception should be thrown when servlet is not properly initialized?

557


What exactly are the functions of servlet?

603


How do we go with database connection and log4j integration in servlet?

710


What are common tasks performed by Servlet Container?

771






What are the key methods that are involved in processing of http servlets?

628


How do you invoke a servelt?

630


How can we achieve transport layer security for our web application?

573


What is http servlet in java?

566


How do I use cookies to store session state on the client?

538


What is the servlet?

625


Explain the working of service() method of a servlet.

508


What are the steps that are required to handle the multi-threading?

599


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

594


What do you mean by cgi?

534