I am trying to grab the current url as it appears in the browser address bar on my JSP page and has several options to execute it.
In my current application, we are going to place a web server in front of our application server, than it seems that these values ββwill not be used.
I have another way to help javascript document.URL
, but I'm not sure how reliable it will be.
I need to get information about the location of the user, and if I can use getRequestURI()
, it will return something like getRequestURI()
to me.
In short, all I want is to fix the URL in the address bar of the browser and save it in a hidden field of my JSP page.
I'm not sure the best way to achieve this.
source share