代码如下:<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/commons/taglibs.jsp"%>
<%@ include file="/pages/commons/extjs.jsp"%>
<html>
<head>
<title>分配报表</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="${ctx}/styles/main.css">
</head>
<script type="text/javascript">
Ext.onReady(function() {
var tabs = new Ext.TabPanel(
{
border : false,
renderTo : tab_div,
height : 450,
items : [{
title : 'DW报表',
html : '<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="${ctx}/role.shtml?action=toAlotDwRpt&roleId=${roleId}"></iframe>'
},
{
title : '主机报表',
html : '<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="${ctx}/role.shtml?action=toAlotZjRpt&roleId=${roleId}"></iframe>'
} ]
}); tabs.activate(0);
});
</script>
<body>
<div style="width: 100%; overflow: auto; height: 100%;" id="tab_div">
</div>
</body>
</html>
我是在tabpanel上用iframe嵌入了两个选项卡页面。然后每一个选项卡页面里面点击按钮经过action处理以后跳转到一个success.jsp。。每次完了以后iframe外面的tabpanel上面的title还是在。。应该是父窗口刷新的问题求高手支招。。感激不尽啊。。