ServletContext的應用場合: 1.多個Servlet通過ServletContext對象實作資料共享。 2.擷取WEB應用的初始化參數。 3.實作Servlet的轉發。 4.利用ServletContext對象讀取資源檔案。