wood burning stoves 2.0*
The moose likes Servlets and the fly likes Method getRequestURL() not found in javax.servlet .http.HttpRequest??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Method getRequestURL() not found in javax.servlet .http.HttpRequest???" Watch "Method getRequestURL() not found in javax.servlet .http.HttpRequest???" New topic
Author

Method getRequestURL() not found in javax.servlet .http.HttpRequest???

Stefan Elfvinge
Ranch Hand

Joined: Oct 29, 2001
Posts: 52
Hi!
Big mystery- why does my compiler say that above method can't be found in the above package/interface??? Obviously the compiler has access to the jarfile containing the code since the errorreport prints the fully qualified name???
The method getRequestURI() is found, but not the other one...
Anyone?


Steffe
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Check your servlet.jar. There is NO getRequestURL() found in javax.servlet.http.HttpRequest in the Servlet 2.2 version.
Stefan Elfvinge
Ranch Hand

Joined: Oct 29, 2001
Posts: 52
Yep, I had an old API...
Thanks and as we say in Sweden- "Glad midsommar!"
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
u could use
HttpUtils.getRequestURL(request) instead i guess..
regards
maulin
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
In the Servlet 2.2 API the method 'getRequestURI()' is in:

/Rene


Regards, Rene Larsen
Dropbox Invite
 
wood burning stoves
 
subject: Method getRequestURL() not found in javax.servlet .http.HttpRequest???