request.getRequestURI()
是不是这个

解决方案 »

  1.   

    StringBuffer sb = javax.servlet.HttpServletRequest.getRequestURL();
      

  2.   

    getRequestURIpublic java.lang.String getRequestURI()Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. The web container does not decode this String. For example: First line of HTTP request  Returned Value 
    POST /some/path.html HTTP/1.1  /some/path.html  
    GET http://foo.bar/a.html HTTP/1.0   /a.html  
    HEAD /xyz?a=b HTTP/1.1  /xyz  To reconstruct an URL with a scheme and host, use HttpUtils.getRequestURL(javax.servlet.http.HttpServletRequest). 
    是javax.servlet.http.HttpServletRequest,我写少了~
      

  3.   

    getRequestURL 和 getRequestURI 好像取得的都是被请求的URL啊
      

  4.   

    取 request.getHeader("referer");
      

  5.   

    在前一个页面get出来再set
    然后在这个页面再get前面那个页面set的?
    呵呵,方法有点笨