String refText = request.getHeader("referer");
if (refText == null) {
// no referer
}
-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 9:11 AM
To: [EMAIL PROTECTED]
Subject: Best way to find referrer
I'm looking to find
I'm looking to find the best way to find the referring page (ie find out where the
user came from). So far this is the piece of code I have...
Enumeration e = request.getHeaderNames();
String refText = null;
while (e.hasMoreElements())
{
String key = (String)e.nextElement();
if (key.eq
2 matches
Mail list logo