Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

how to fetch address bar url in jsp

1929515Dec 15 2015

Hi there,

I am trying to fetch address bar url in jsp. I have jsp running in Oracle EBS R12 version application server.

We have two urls and both point to same server but based on url the user is on we need to display different message.

two urls:

catalog.store.com

catalog.mystore.com

I tried following things so far but none of them gives me url in address bar.

request.getRequestURL().toString()

request.getRequestURI()

response.getHeader("referrer")

request.getServername()

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 12 2016
Added on Dec 15 2015
0 comments
1,129 views