What is Servlet context?- Servlet context is created by the container and can be viewed as a shared memory resource for all the servlets for a web application.
- A servlet context object can be placed in the memory and all other servlets can used this information.
- For example log files information, dispatching requests etc. Only one servlet context is available for one web application that uses servlets.
- The web application environment information can also be passed to the init() method.
- The web container instantiates the servlet context at the time of deploying a web application.