what is difference between servletconfig and servletcontext?
Answers were Sorted based on User's Feedback
ServletConfig and ServletContext are interfaces in
javax.servlet package
ServletConfig is one per one Servlet.Each servlet as its
own ServletConfig object.The ServletConfig object is
provided by the Container during the initialization phase
of the Servlet.ServletConfig object can be user to read
initialization parameters into the Servlet from web.xml.
ServletContext is one per one web-application.All servlets
which are in a web-application have common ServletContext.
ServletContext can be used to communicate the Servlet with
the ServletContainer.It can also be used to read
initialization parameters from web.xml.It can be used to
share some resources between servlets which are in a web-
application.(resources like Connection object)
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / suganthi
Servlet Config: Servlet config is Unique for every Servlet.
Servlet Context: Servlet Context is same for all the Servlet.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / dileep
1.servletconfig is nothing but per one servlet and servlet
context is nothing but per entier web Application.
| Is This Answer Correct ? | 5 Yes | 2 No |
Is char a method in java?
What is the type of lambda expression?
What is a substring of a string?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Tell us something about an iterator.
Can we declare register variable as global?
How are variables stored in memory?
What is method overloading in JAVA? Why is it not present in C ?
0 Answers Akamai Technologies,
How do you square a number?
How many types of modifiers are there?
write a program to create an vector and listeterator.and value should be enter through keyboard.
I dont want to use serialzable in java is there any another concept so plz tell me