index页面中引用了三个界面 ,head.jsp,center.jsp,tail.jsp。
但是在首页中点击head.jsp内容中的超链接跳到新页面之后,新页面中还会显示center.jsp 和tail.jsp如何解决。以下是index.jsp的代码:
<body>
<table width="100%" border="0" >
<tr>
<td colspan="2" >
<iframe width="100%" height="650" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" src="/GraduateDesignByHale/showForHead"></iframe>
</td>
</tr>
<tr><td>
<iframe width="100%" height="500" src="/GraduateDesignByHale/showProduct"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no" > </iframe>
</td></tr>
<tr>
<td colspan="2" align="center">
<jsp:include flush="true" page="/WEB-INF/Shopping/tail.jsp"/>
</td>
</tr>
</table>
</body>
但是在首页中点击head.jsp内容中的超链接跳到新页面之后,新页面中还会显示center.jsp 和tail.jsp如何解决。以下是index.jsp的代码:
<body>
<table width="100%" border="0" >
<tr>
<td colspan="2" >
<iframe width="100%" height="650" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" src="/GraduateDesignByHale/showForHead"></iframe>
</td>
</tr>
<tr><td>
<iframe width="100%" height="500" src="/GraduateDesignByHale/showProduct"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no" > </iframe>
</td></tr>
<tr>
<td colspan="2" align="center">
<jsp:include flush="true" page="/WEB-INF/Shopping/tail.jsp"/>
</td>
</tr>
</table>
</body>
加上target属性就可以了。