注销退出到最初登录界面问题

img

头部是用一个jsp写的,左侧也是一个jsp。中间内容显示是分别根据左侧的标题写的对应jsp链接。

但是左侧的注销退出,点完后只退出了左侧部分,头部和中间内容都退出不了。头部也写了个退出——本想是左侧退出,头部退出就可以但是没有退到最初的登录界面
/如下图所示/

img

ps:开始写过将头部和左侧在一个jsp中写,但是有问题。请问该怎么解决或者改呢

整个过程是管理员登录界面是login.jsp,登录进去后写的是下面这个jsp。由这个jsp来显示头部左侧及中间内容。




```<html>
<head>
    <title>后台管理页面title>
    <meta http-equiv=Content-Type content=text/html;charset=utf-8>
head>
<frameset rows="64,*"  frameborder="0" border="0" framespacing="0">
    <frame src="${pageContext.request.contextPath}/public/admin/admin_top.jsp" noresize="noresize" frameborder="0" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
    <frameset cols="200,*" id="frame">
        <frame src="${pageContext.request.contextPath}/public/admin/admin_left.jsp" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
        <frame src="/menus/allMenus " name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
    frameset>
frameset>

<noframes>
    <body>body>
noframes>
html>

(本来想左侧退出加头部退出就行,但中间内容没有退出而且头部退出也有问题,像是又重复多了一个头部一样) 如下图:

![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/621935528976154.png "#left")

frameset是现代浏览器早就淘汰的东西,你的浏览器不一定支持。