后台跳转都是同一个网页链接localhost:8080/admin/login,所以最后登录进去后退出也退出不了回不到最开始login界面
login界面:
登录后界面:
整个流程是首先login登录进去后是下面这个代码来显示头部,左侧及内容。(开始试过头部和左侧写一个jsp但最后效果不好)而且登录进去后应该是下面这个jsp 但是网页链接还是admin/login,该怎么改能退出到登录界面呢?
后台管理页面
=Content-Type content=text/html;charset=utf-8>
="64,*" frameborder="0" border="0" framespacing="0">
="${pageContext.request.contextPath}/public/admin/admin_top.jsp" noresize="noresize" frameborder="0" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
="200,*" id="frame">
="${pageContext.request.contextPath}/public/admin/admin_left.jsp" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
="/menus/allMenus " name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
你退出之后用respose.sendRedirct(“地址”)重定向之后浏览器地址就变了
要退出建议直接重定向
frameset是现代浏览器早就淘汰的东西,你的浏览器不一定支持。