What is the difference between servlet config and servlet
context.
Answer Posted / mamta singh
Servlet config is a private area for every servlet.Any
variable stored there is accessible to only that servlet
while sevlet context is a shared area for every servlet in
an application.In an aaplication every servlet can access
the variable stored in servlet context.
| Is This Answer Correct ? | 203 Yes | 20 No |
Post New Answer View All Answers
What do you mean by mime type?
What are the life cycle methods of a servlet?
Which are the different ways you can communicate between servlets?
What is URL Encoding?
How we can create war file in servlet?
What is the major difference between context parameter and context attribute?
Where do you define dispatcherservlet?
What do you mean by interservlet communication?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is meant by cookies?
What is servlet looping or chaining?
Is servlet synchronized?
What is the difference between Servlets and Applets?
Can we fetch the attributes related to a servlet on a different servlet?