[opencms-dev] Detecting URL in browser location bar?
Joe Desbonnet
jdesbonnet at gmail.com
Sat Apr 22 17:05:59 CEST 2006
I'm experimenting incorporating GoogleMaps into an OpenCms project.
However GoogleMaps requires you to obtain a key which is tied to a
particular URL.
When developing an OpenCms project, the URL for a page will be
different when in the workplace and live site. If I could detect the
URL in the browser location bar within OpenCms then I could switch in
the correct key depending on context.
In a normal servlet environment the getRequestURL() of the HttpRequest
object gives me this information. However as far as I can tell,
somewhere between Apache and the OpenCms request object this
information is lost.
Does anyone know a reliable way of figuring out what URL is in the
browser location bar for a request?
Joe.
More information about the opencms-dev
mailing list