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
Define declaration.
What is the structure of the http response
Why do we use sendredirect() method?
Why the container loads server at the application startup and how?
How can we refresh automatically when new data is entered into the database?
What are the steps that are required to handle the multi-threading?
What are all the advantages of servlet over cgi?
Difference between java beans & servlets?
Is java servlet still used?
What is servlet used for?
Why are servlets used?
What is a web container and what is its responsibility?
What is the process for chaining servlet?
What is servlet name in web xml?
What is the use of servlet wrapper classes?