javax.servlet.ServletConfig interface detail

ServletConfig is an interface of servlet API. Implementation of which is provided by vendors. An object of type ServletConfig is created by the server for each servlet. This object has following use: 1- It is used by the server to provide Servlet specific initialization parameter to Servlets. 2- It is used by the server to provide reference of the ServletContext object to the Servlet. 2.2- ServletConfig object is created for the Servlet. 2.3- <init-param> (if define for the Servlet) are read and store in it. 2.4- Reference of ServletContext is saved in it. 3.0- Server call the init() method of Servlet and provide the reference of ServletConfig. Method of javax.servlet.ServletConfig interface: 1- getServletContext(): ...