ServletConfig to access initial parameter value

java servlet are executed when user request for some resource in server. ServletConfig is interface defined in javax.servlet package. ServletConfig is used to access servlet’s initial value stored in web.xml. For each servlet there is one ServletConfig.

Initial value for servlet are stored in web.xml with name value pair as follows

initial parameter are specified inside <servlet> tag as specified above.
A servlet can have one or more <init-param></init-param> tags to store initial values