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
How can you push data from an Applet to a Servlet?
What is context in servlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
How to get the server information in a servlet?
What do you mean by annotations in servlet?
How can I send user authentication information while making URL Connection?
What is servlet? Explain
How we can call a jsp from the servlet?
What is the life-cycle of servlets?
Write a command to get actual path of a servlet to the server?
Difference between forward() method and sendredirect() method ?
How do we go with database connection and log4j integration in servlet?
How will you pass values from HTML page to the servlet?
Why are servlets used?
What are the different session tracking techniques?