code: @Override
      public void init(final ServletConfig config) throws ServletException {
          super.init(config);
          contextDirPath = getServletContext().getRealPath("/");
  
      }
docs: Initialize servlet.