tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tia Haenni" <TGHae...@earthlink.net>
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:

test5.java:66: 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,

Tia

-----Original Message-----
From: William Kaufman [mailto:WKaufman@viquity.com]
Sent: Wednesday, July 11, 2001 4:22 PM
To: 'tomcat-user@jakarta.apache.org'
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
producing?

                                        -- Bill K.

> -----Original Message-----
> From: Tia Haenni [mailto:TGHaenni@earthlink.net]
> 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
>


Mime
View raw message