code: private String getRelativePath(HttpServletRequest request) {
  
          String result = request.getPathInfo();
          if (result == null) {
              //result = request.getServletPath();
          }
          if ((result == null) || (result.equals(""))) {
              result = "/";
          }
          return (result);
      }
docs: Return the relative path associated with this servlet.<p>
  
  @param request the servlet request we are processing
  
  @return the relative path of the resource