tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tia Haenni" <>
Subject RE: Help with using getRequestURL()
Date Wed, 11 Jul 2001 23:03:46 GMT
Ok, so typing is not my string point, I meant HttpServletRequest, there is a
method getRequestURL()-not URI that attempts to reconstruct the entire URL.
The complaint was: cannot resolve symbol
symbol  : method getRequestURL  ()
location: interface javax.servlet.http.HttpServletRequest
      String Url = request.getRequestURL();

I have seen this used, but I am not sure why I can't get it to work. As I
mentioned before it is deprecated from HttpUtils. Any insight is much
appreciated. Thanks,


-----Original Message-----
From: William Kaufman []
Sent: Wednesday, July 11, 2001 4:22 PM
To: ''
Subject: RE: Help with using getRequestURL()

Assuming you mean the "getRequestURI()" (not "URL") method of
"HttpServletRequest" (not "Servelt"),...

What exactly is the compiler complaining about?  What's the error it's

                                        -- Bill K.

> -----Original Message-----
> From: Tia Haenni []
> Sent: Wednesday, July 11, 2001 11:21 AM
> To: Tomcat Mailing List
> Subject: Help with using getRequestURL()
> Is anyone familiar with the method getRequestURL() of the
> HttpServeltRequest
> interface? I am trying to use it, but the compiler object to
> the method. By
> the way, this method is previously of
> javax.servlet.http.HttpUtils, which
> has been deprecated. Thanks in advance,
> Tia

View raw message