what is the difference between ServletContext and
ServletConfig
Answer Posted / balu
yes ur correct Saurabh..
servletcontext scope is of total application..where as
servletconfig is only for the servlet....
servletcontext gets created when the server starts i.e when
the server reads the web.xml of the application which is
being deployed in the server...
where as servletconfig get created when the servletobject
gets created...
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Is servlet thread safe?
What is meant by servlet? What are the parameters of the service method?
What are the uses of servlets?
Difference between java beans & servlets?
How can the session in servlet can be destroyed?
What is lazy loading and what is Generic Servlet Class?
How to commuincate between an applet and a servlet?
How httpservlet is different from the genericservlet?
request parameter how to find whether a parameter exists in the request object?
What is the difference between portlet and servlet?
What do you mean by annotations in servlet?
What do you mean by cgi?
What is the life-cycle of servlets?
Define the servlet mapping.
What is difference between cookies and httpsession?