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 a servlet context object?
Explain jsessionid?
Which interface must be implemented by all servlets?
Which method of the httpservletrequest object is used?
What are the steps involved in placing a servlet within a package?
Write a simple servlet program to print the contents of html.
What is the difference between CGI and Servlet?
Which httpsession object is used to view and manipulate information about a session?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Where do you define dispatcherservlet?
What is servlet name in web xml?
List out difference between a JavaBean from a Servlet?
Explain the working of service() method of a servlet.
What are life cycle methods of a servlet?
How do I know if java is running on linux?