0 Replies Latest reply on Dec 15, 2015 4:28 PM by 1929515

    how to fetch address bar url in jsp

    1929515

      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()