title: How to get previous URL?
body: <p>I need the URL from which my web app is called. 
  For eg:- If there is a link to my site foo.com from stackoverflow.com, I need the stackoverflow link in web app(managed bean). </p>
  
  <p>All helps appreciated, thanks.</p>