code: public String getBaseServletPath()
      {
          URL urlCodeBase = this.getCodeBase(null);
          String strCodeBase = urlCodeBase.toString();
          if (strCodeBase != null)
              if (strCodeBase.endsWith("/"))
                  strCodeBase = strCodeBase.substring(0, strCodeBase.length() - 1);
          return strCodeBase;
      }
docs: Get the path to the base servlet.
  NOTE: This DOES NOT get the servlet path, it gets the path up to the servlet.
  ie., if the servlet is http://www.xyz.com:3433/abc/tourgeek I return http://www.xyz.com:3433/abc.
  This is useful for accessing the proxy or report generator.
  @return The servlet path (NOT including the trailing '/'.