What is Servlet context?

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.
Explain session tracking in Java Servlet
The state of requests for the same user is being maintained by the session of a servlet....
Describe Servlet collaboration
Servlet collaboration is all about sharing information among the servlets..
Describe the basics of Servlets
Servlets are java classes which run on a web server. The results produced by the servlet are viewed on a remote web server....
Post your comment