Capturing referrer?

I'd like to capture the referrer and then from there would like to add it to a session variable. This will be used to display a certain header.How can I check to see if the referrer contains a certain domain?
[230 byte] By [hyrum14] at [2007-9-26 2:45:56]
# 1
To capture the referrer I use javax.servlet.http.HttpUtils.getRequestURL(request).toString());this gives you the entire URL from the protocol forward. You can then interrogate it for a particular domain.Hope that helpsMike
mamjm at 2007-6-29 10:28:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...