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 are the types of Session Tracking ?

646


What do you mean by httpservlet and how it is different from the genericservlet?

536


What is dispatcher servlet?

555


What are the various ways of session supervision in servlets?

519


What is cgi and what are its drawbacks?

549






What is the functionality of actionservlet and requestprocessor?

594


How do you find out what client machine is making a request to your servlet

529


Explain the role of dispatcherservlet and contextloaderlistener.

603


What is the requirement of servlet config and servlet context implemented and how are they implemented?

539


why we should override only no-agrs init() method.

676


What’s the difference between sendredirect and forward methods

564


Is it possible to have a constructor inside the servlet?

550


What is java servlet?

606


What is servlet attributes and their scope?

594


What is load-on-startup in servlet?

580