A same question can be found here . and some equal questions found.
They are about javascript
(answer :-window.top.location.href = "http://www.site.com"; )
But
I want to know how to redirect it by Java
in a jsp page. A usual redirect can be done as..
response.sendRedirect("newUrl.jsp");
But it redirects the source page inside the iframe not the parent page. The task is that the source file of the iframe get refreshed and do some stuff(checking session.. getting attributes. )and if the source page meets a particular logical stage,then the parent page might be redirected to another page.But not in javascript, I want to know it in JAVA( That means the jsp/servlet container decides and redirects to another page in the server).
My current opinion is that, such things might be handle with javascript.Your all info is highly appreciated.