This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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....