How can I get the complete URL address (like "www.jguru.com" (with or without "http://")) from a HttpServletRequest?
Created May 7, 2012
It's unbelievable how much interesting stuff you can find. Something like this:
public java.lang.StringBuffer getRequestUrl()
Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters [...].