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 is http servlet in java?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
How would you create deadlock on your servlet?
What do you mean by filter in servlet?
What is meant by session? Tell me something about httpsession class?
How do I support both get and post from the same servlet?
What are the functions of Servlet container?
Explain servlet events?
What must be implemented by all servlets?
Explain the difference between servletconfig and servletcontext in servlet?
What do you mean by mime type?
What's the difference between servlets and applets?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is the use of servletconfig interface?
What are the steps involved in placing a servlet within a package?