Question - How does a servlet get access to its init parameters?
Answer -
The getInitParameter() method is used by the servlet in order to get access to its init parameters:
public String ServletConfig.getInitParameter(String name)
The above method returns the value of the named init parameter or if the named init parameter does not exist it will return null. The value returned is always a single string. The servlet then interprets the value.