Depending on what app-server you are using, you need to request the headers differently. I don't recall exactly who does what, but here are some variants I've seen: HTTP_REFERER Http_Referer http_referer REFERER referer
As you can see, they vary in their use of case (upper, lower, mixed) and whether they prefix HTTP_ to the front. There is a helper class available from Jakarta (which I wrote), that I now see misses the HTTP_ prepending (sue me ;-)): http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/util/src/java/org/apache/commons/util/http/RequestUtils.java You could get around this last weakness with: String referer = RequestUtils.getHeader("REFERER"); if (referer == null) referer = RequestUtils.getHeader("HTTP_REFERER"); Finally, in my own local implementation, I added a method called getIntHeader (could do the same for Date Headers). Its intent should be obvious. Lance Lavandowska www.Brainopolis.com ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
