Forum Stats

  • 3,768,721 Users
  • 2,252,841 Discussions
  • 7,874,694 Comments

Discussions

how to fetch address bar url in jsp

1929515
1929515 Member Posts: 4
edited Dec 15, 2015 11:28AM in JavaServer Pages (JSP) and JSTL

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()
This discussion has been closed.