Getting a request URL in iFrame
Dear all,
I have a file containing an iframe such as this:
file1.jsp:<iframe src="http://mydomain.com/directory/file2.jsp">
In file2.jsp, I wish to get the url of the calling file (file1.jsp); e.g.
file2.jsp:request.getRequestURI();
However, that only returns "/directory/file2.jsp", i.e. the file itself.
Is there a way of solving this? I know it is possible to useparent.location.href in javascript, but would like to use JSP if possible.
Grateful for any thoughts!
/ Fred

