I am faced with the task of writing a JSP code that retrieves the getRequestURL() of the parent frame (the URL shown in the address bar) from a child frame. However, when I attempt to do this, I only obtain the URL of the child frame. Is there anyone who can assist me in obtaining the URL of the parent frame from the child frame?
<%
String s = request.getRequestURL().toString();
out.println(s);
if (s.contains("Password")) {
out.println("Password changed Successfully");
}
%>