code: private String getURI(HttpServletRequest request)
      {
          String uri= (String)request.getAttribute("javax.servlet.forward.request_uri");
          if (uri == null)
              uri= request.getRequestURI();
          return uri;
      }
docs: /* ------------------------------------------------------------