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 do you mean by filter in servlet?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Is servlet a controller?
If a servlet is not properly initialized, what exception may be thrown?
What is the difference between context parameter and context attribute?
What is servlet and its advantages?
What is cookies in servlet with example?
What are the disadvantages of storing session state in cookies?
What is servlet api used for conneting database?
What do you mean by scope object and what are its types?
What is the process for chaining servlet?
What are the supporting protocol by HttpServlet ?
What methodology can be followed to store more number of objects in a remote server?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
If servlet receives multiple requests, how many objects will it create?