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


Please Help Members By Posting Answers For Below Questions

What are the functions of an intercepting filter?

688


What is the GenericServlet class?

833


What are the phases of the servlet life cycle?

775


What do you mean by filter in servlet?

715


What is a web container and what is its responsibility?

694


What are Servlets?

800


How to rectify errors in java servlet while compilation?

686


How printwriter is different from servletoutputstream?

755


How to handle exceptions thrown by application with another servlet?

787


How do you configure a centralized error handler in servlets?

731


Explain servlet life cycle?

800


What is servlet name in web xml?

738


How can an existing session be invalidated?

843


What are the different types of servlets?

692


How can we include static files in the jsp page?

780