HttpServletRequest.getRequestURL() for domain name?

L

Larry S

hey there - i'm having an issue with
HttpServletRequest.getRequestURL() - i dont know if i'm just using the
wrong method, or, if its an apache configuration, OR if its even
possible..?

well, in my JSP pages, i want to use
HttpServletRequest.getRequestURL() to return the URL that i've gone
to. For example, if i call my PC http://www.localpc.com, i want it to
return that. However, it doesn't. It returns the IP address of
http://127.0.0.1.

So, my question is, it it possible to pull exactly what's in the
address bar of the browser via java in a JSP? What am i doing wrong
here?

As always, any help is greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top