frameset 代码如下: <FRAMESET rows="72,*" cols="*" frameborder="NO" border="0" framespacing="0"> <FRAME src="top.jsp" name="topFrame" scrolling="NO" noresize > <FRAMESET cols="160,14,*" frameborder="NO" border="0" framespacing="0" id="mainFrm"> <FRAME src="left.jsp" name="leftFrame" scrolling="no" noresize> <FRAME src="hidden.jsp" scrolling="NO" name="switch" noresize> <FRAME src="today.jsp" name="main" scrolling="auto" noresize> </FRAMESET> </FRAMESET> 1.页面调用action 2.action跳转到一个中间jsp文件里(这里我们起名为go.jsp) 3.go.jsp代码: <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>go</title> </head> <body> <% String url="FtpUserManager.html"; out.write("<script>window.top.main.location.href=\""+url+"\";</script>"); %> </body> </html>
|