precede it w/javax.servlet.http.

-----Original Message-----
From: Tia Haenni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 5:38 PM
To: [EMAIL PROTECTED]
Subject: RE: Help with using getRequestURL()


I get this:

test5.java:67: cannot resolve symbol
symbol  : variable HttpUtils
location: class test5
      java.lang.StringBuffer reqUtilURL = HttpUtils.getRequestURL(request);

-----Original Message-----
From: Li, William [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 6:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Help with using getRequestURL()


try:
java.lang.StringBuffer reqUtilURL = HttpUtils.getRequestURL(request);
String callingURL = reqUtilURL.toString();

-----Original Message-----
From: Tia Haenni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 4:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Help with using getRequestURL()


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:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 4:22 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
> 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
>

Reply via email to