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

Define declaration.

626


What is the structure of the http response

687


Why do we use sendredirect() method?

558


Why the container loads server at the application startup and how?

589


How can we refresh automatically when new data is entered into the database?

604






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

605


What are all the advantages of servlet over cgi?

614


Difference between java beans & servlets?

597


Is java servlet still used?

603


What is servlet used for?

704


Why are servlets used?

541


What is a web container and what is its responsibility?

537


What is the process for chaining servlet?

618


What is servlet name in web xml?

568


What is the use of servlet wrapper classes?

677