Could be the capitalization. I use:
String referer = req.getHeader("Referer");
and it works with jdk1.3 and Tomcat 3.2.1.
Thanks,
--jeff
- Original Message -
From: "David M. Rosner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 12:10 PM
Subject: HTTP Referer
On Tue, 17 Apr 2001, David M. Rosner wrote:
> Hi All,
>
> For some reason I can't get the Referer header field from any of my JSP
> pages. I'm using the following code:
>
> String strReferringURL = request.getHeader( "referer" ) ;
Is that the only named you tried? Capitalization and/or the exac
On 3.2.1 it works for me. Make sure you are actually getting to the page
using a method which would generate a referrer. Just typing the link in the
browser address bar will not do it. You need to make a dummy html file with
a link to your test page and click on the link to see it.
-Origin