Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting URL in the address bar in the JSP

843789Sep 1 2009 — edited Sep 2 2009
Hi all,

I like to get the URL displayed in the address in my JSP .for eg:if the URL is www.abc.com in my view source I need to get that URL in a link field <link href="www.abc.com"/> for the purpose of webtracking.I tried with the window.location in javascript but was not to get the field in JSP and I tried the http header names but not able to get the full URL.

Can anybody help me in this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2009
Added on Sep 1 2009
7 comments
2,050 views