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
What are the advantages of Servlet over CGI?
How do cookies work in servlets?
What is java servlet session?
What is servlet looping or chaining?
What are the different methods involved in generic servlet?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What is servlet in web technology?
Why do we have servlet listeners?
Is servlet synchronized?
What do you mean by interservlet communication?
What is the difference between Servlets and Applets?
What is servlet initializer?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What are the uses of servlet and what is servlet chaining?
What is the major difference between context parameter and context attribute?