This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The ServletConfig class is used by the servlet container to communicate information to the servlet. Initialization parameters, for example, that the servlet engine wants to pass to the servlet are passed in the ServletConfig object. It also paases the ServletContext object which you can use to find the API version that the servlet is running under and other information about the Servlet Container. The getInitParameter() method passes initialization parameters that the Servlet Container wants to provide to the servlet.