Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

How to exit from FrameSet and redirect to other page?

Edward King

2004-05-04

Replies:

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 listserv@(protected)".
For digest: mailto listserv@(protected)".

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
©2008 junlu.com - Jax Systems, LLC, U.S.A.