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 Thu, 12 Jul 2001 02:30:16 GMT
That worked, thanks!

-----Original Message-----
From: Li, William [mailto:william.li@sapmarkets.com]
Sent: Wednesday, July 11, 2001 7:39 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help with using getRequestURL()


precede it w/javax.servlet.http.

-----Original Message-----
From: Tia Haenni [mailto:TGHaenni@earthlink.net]
Sent: Wednesday, July 11, 2001 5:38 PM
To: tomcat-user@jakarta.apache.org
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:william.li@sapmarkets.com]
Sent: Wednesday, July 11, 2001 6:52 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Help with using getRequestURL()


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

-----Original Message-----
From: Tia Haenni [mailto:TGHaenni@earthlink.net]
Sent: Wednesday, July 11, 2001 4:04 PM
To: tomcat-user@jakarta.apache.org
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: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