when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?
Answer Posted / durga ganesh reddy
Just by receiving a request, the web container creates
ServletContext object(so it is called asapplication
object).After creating servlet object then ServletConfig
object will be created.For each servlet instance there will
be a ServletConfig istance is available separtely.
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
Why is a constructor needed in a servlet even if we use the init method?
What are the functions of an intercepting filter?
Why is init() method is used in servlets?
What is the difference between 2 types of servlets?
When servlet object is created?
How will two or three servlets interact or communicate with each other?
What is http servlet in java?
What are the different session tracking techniques?
How do servlets work?
Why the container loads server at the application startup and how?
When servlet is loaded?
What are the objects involved when a servlet receives a call from client?
Why filter is used in servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is servlet and its types?