Browse - Programming Tips - How I can a Java Servlet get the referrer?

Date: 2013mar27
Language: Java

Q.  How I can a Java Servlet get the referrer?

A.

final String referer = request.getHeader("referer"); // It is spelled wrong by tradition: should be referrer