RE: Best way to find referrer

2002-03-13 Thread McDowell, Mark
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

Best way to find referrer

2002-03-13 Thread John M. Corro
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