You are correct. ServletConfig has the servlet specific data from web.xml - ServletContext is also of interest in giving the "web application" specific data.
You can find the complete set of rules which answer all questions like this for the servlet and
JSP environments at java.sun.com in the form of some big .pdf files.