Hello I’m trying to get referral website and insert it into my database .
What I want is to get the referral site which called my “jsp page” before its posted into Servlet
For instance I have first.jsp which I reach from “www.example.com”
When I POST data from first into servlet I want to get the “www.example.com” but not “first.jsp”
When I do this in my servlet, I get “first.jsp”
request.getHeader("referer")
I figured out how to do it
in the jsp page I placed this code
Now in java servlet I used this code