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 we translate jsp?
What do you mean by mime type?
Is it good idea to create servlet constructor?
Explain the differences between jsp and servlet.
How do I know if java is running on linux?
Why is httpservlet declared abstract?
What is servletconfig?
What is webservlet?
What if we pass negative value in load-on-startup?
Explain servlet life cycle?
What are the different ways we can maintain state between requests?
How can we implement a jsp page?
What is servlet and its types?
What must be implemented by all servlets?
Why don't we write a constructor in a servlet?