- Posted by: Nestor Boscan
- Posted on: April 20 2006 12:59 EDT
there is a HTTP header named HTTP_REFERER: https://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14
the value of this header will basically tell from which url which contains the link that sent the user to your page.
In a servlet or a jsp you can obtain it using req.getHeader("Referer"), where req is your http request object.
Emil ( http://www.thekirschners.com/software/testare/testare.html )
I don't think this will work with WAP browsers. You can't trust that they will send the attribute.