instead of using forward. Use parents.location.href="other.jsp"
Edward King wrote:
> I have frame which contains three JSP page,like following:
> <frameset COLS="*,200" onunload="javascript:window_onunload();">
> <frameset ROWS="*,118" >
> <frame SRC="a.jsp" NAME="a" noresize frameborder=0 >
> <frame SRC="b.jsp" NAME="b" noresize frameborder=0 >
> </frameset>
> <frame SRC="c.jsp" NAME="c" noresize frameborder=0 >
> </frameset>
>
> --------------------------
> | a.jsp | |
> -------------- c.jsp |
> | b.jsp | |
> --------------------------
>
> /**********/
> /* c.jsp */
> /**********/
> ...
> if(condition==true){
> %>
> <jsp:forward page="other.jsp" />
> <%
> }
> else{
> .....
> }
>
> There is a condition in the c.jsp,when this condition is true,I want to realize
> following function,exit from FrameSet and redirect to other page from c.jsp,like
> follows:
> --------------------------
> | |
> | other.jsp |
> | |
> --------------------------
>
> But above code realize following function,this is not what I wanted! How to realize
> my function?
> --------------------------
> | a.jsp | |
> -------------- other.jsp |
> | b.jsp | |
> --------------------------
>
> Thanks in advance!
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com