This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
ServletContext is a single object that has information about the entire web application. It's associated with "application scope" and can be used to keep references to objects that any JSP or servlet can accesss.
The ServletConfig object has a narrower scope. There is one ServletConfig object for each servlet, and it's used to keep information about a specific servlet. One of the important uses of the ServletConfig object is to retrieve initialization parameters set for that servlet in the web.xml file.
some more differences in web.xml for Servlet Init Params that is init params get by ServletConfig the tag is <init-param> which is child tag of servlet. But for ServletContext init Parameters the tag is <context-param> which is child tag of web-app.
You have getServletContext() method in ServletConfig. Many more....