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 do you load an image in a Servlet?
What exactly is a servlet?
How can we invoke another servlet in a different application?
How printwriter is different from servletoutputstream?
Is java servlet still used?
What is Servlet API used for connecting database?
What are life cycle methods of a servlet?
What is servlet container. how it works?
Which java application server is the best?
How does Cookies work in Servlets?
request parameter how to find whether a parameter exists in the request object?
Explain how does JSP handle run-time exceptions?
What is the use of send redirect () method?
What is called a session?
Why is httpservlet declared abstract?