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 are the types of Session Tracking ?
What do you mean by httpservlet and how it is different from the genericservlet?
What is dispatcher servlet?
What are the various ways of session supervision in servlets?
What is cgi and what are its drawbacks?
What is the functionality of actionservlet and requestprocessor?
How do you find out what client machine is making a request to your servlet
Explain the role of dispatcherservlet and contextloaderlistener.
What is the requirement of servlet config and servlet context implemented and how are they implemented?
why we should override only no-agrs init() method.
What’s the difference between sendredirect and forward methods
Is it possible to have a constructor inside the servlet?
What is java servlet?
What is servlet attributes and their scope?
What is load-on-startup in servlet?