Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Servlets
getRequestURL
Me Fdo
Ranch Hand
Posts: 33
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Could you please someone let me know what's wrong here
getRequestURL(req).toString()
Build Error was getRequestURL(javax.servlet.http.HttpServletRequest ) was undefined for the
servlet
.
Thanks
Me
Ray Stojonic
Ranch Hand
Posts: 326
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A quick peek at the javadoc reveals that getRequestURL is a member of HttpServletRequest and takes no parameters.
Juanjo Bazan
Ranch Hand
Posts: 231
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The right way to do it:
(req.getRequestURL()).toString()
HTH
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Request.ServerVariables()
HttpServletRequest
how to get the browser url
Cookie setting
how to tell if a servlet forwarded the user to this JSP
More...