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 is servlet and its advantages?
How many servlet objects are created?
What are the life cycle methods of a servlet?
Why is Servlet so popular?
Is java servlet still used?
Name the different ways of session tracking.
What is setattribute in servlet?
Can you create a deadlock condition on a servlet?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
How many objects of a servlet is created?
What is the difference between sendredirect() and forward() in a servlet?
What is cgi?
What are the different types of servlets?
When jsessionid is created?
Write a command to get actual path of a servlet to the server?