This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes  getRequestURL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " getRequestURL" Watch " getRequestURL" New topic


Me Fdo
Ranch Hand

Joined: Jan 12, 2004
Posts: 33
Could you please someone let me know what's wrong here
Build Error was getRequestURL(javax.servlet.http.HttpServletRequest ) was undefined for the servlet.

Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
A quick peek at the javadoc reveals that getRequestURL is a member of HttpServletRequest and takes no parameters.
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
The right way to do it:
I agree. Here's the link:
subject: getRequestURL
It's not a secret anymore!