用户登录注销问题

y11111494 2010-08-09 11:21:36
bbs用户登录注销:
有两个页面
show_main.jsp :使用了framset,引用了三个页面,其中之一是show_top.jsp。
show_top.jsp:完成登录,退出,注销。

出现的问题:
在登录后,浏览器还不停的运行,下面的状态条慢慢的前进,
注销后,浏览器还不停的运行,下面的状态条慢慢的前进,
退出后,则没事,浏览器很快就运行完毕。

show_main.jsp :

<frameset rows="51px,*" framespacing="0" id="fs1">
<frame name="top" src="${basePath}/forum.do?method=showTop" frameborder="0" noresize="noresize" scrolling="no"/>
<frameset cols="485px,*" id="fs2">
<frame name="left" src="${basePath}/forum.do?method=showLeft&id=${param.id }" scrolling="yes"/>
<frame name="right" src="${basePath}/forum.do?method=showRight&topicId=${param.topicId }"/>
</frameset>
</frameset>
<noframes></noframes>


show_top.jsp

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TOP</title>
<%@ include file="/WEB-INF/pages/public/commons.jspf" %>
<link href="${basePath}/style/forum_top.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<table style="height: 51px;" width="100%" cellspacing="0" cellpadding="0" class="main">
<tr class="row1">
<td>
<div class="logo"><span>传智播客论坛</span></div>
<div style=" float:left;">
<%--未登录用户,显示登录表单--%>
<c:if test="${SESSION_LOGGED_ON_USER eq null}">
<html:form action="/user?method=login" styleClass="login_form" focus="loginName" >
<html:hidden property="PARAMETER_RETURN_PATH" value="${request_returnPath}"/>
<html:hidden property="src" value="forum_show_top"/>
用户名:
<html:text property="loginName" styleClass="input"/>
密码:
<html:password property="password" styleClass="input"/>
<input type="checkbox" name="autoLogin"/>
自动登录
<html:image src="${basePath}/style/images/loginnew.gif" styleClass="img" />
</html:form>
</c:if>
<%--登录用户,显示用户信息--%>
<c:if test="${SESSION_LOGGED_ON_USER ne null}">
用户名:${SESSION_LOGGED_ON_USER.loginName}
昵称:${SESSION_LOGGED_ON_USER.nickname}
<%--退出--%>
<html:link action="/user?method=logout">
<img style="img_reg : img" src="${basePath}/style/images/icon_18.gif"/></html:link>
</c:if>
</div>
<div style="width: 80px; float:left"><html:link target="_parent"
action="/portal?method=index" styleClass="returnHome">返回首页</html:link>
</div>
</td>
</tr>
<tr class="row2">
<td>
<div id="bbsnav">
<ul>
<c:if test="${SESSION_LOGGED_ON_USER eq null}">
<li><html:link action="/user?method=regUserUI" target="_blank">注册</html:link></li>
<li class="line"/>
<li><html:link action="/user?method=loginUI" target="_blank">登录</html:link></li>
</c:if>
<c:if test="${SESSION_LOGGED_ON_USER ne null}">
<li><html:link action="/user?method=logout" target="_self">注销[${SESSION_LOGGED_ON_USER.loginName}]</html:link></li>
</c:if>
<li class="line"/>
<li><html:link action="/portal?method=index" target="_parent">返回首页</html:link></li>
<li class="line"/>
<li><html:link action="/topicSearch?method=searchTopicUI" target="_blank">站内主题搜索</html:link></li>
<bbs:permission resource="System" action="Manage" >
<li class="line"/>
<li><html:link action="/manage/portal?method=index" target="_blank">系统管理</html:link></li>
</bbs:permission>
</ul>
</div>
</td>
</tr>
</table>
</body>
</html>



...全文
261 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
sAS112UUUYY111 2010-08-12
  • 打赏
  • 举报
回复
这是什么问题?很严重的
y11111494 2010-08-09
  • 打赏
  • 举报
回复
效果达到,但是为什么还在运行?
如果刷新页面就不再显示状态条了?
这估计跟frame有关的
hongbowu 2010-08-09
  • 打赏
  • 举报
回复
状态栏那个进度条不用管,不知道效果有没有达到
y11111494 2010-08-09
  • 打赏
  • 举报
回复
没有错误,只是状态条 在不停的前进
Judge_It 2010-08-09
  • 打赏
  • 举报
回复
看看IE左下角有没有显示页面中有错误
y11111494 2010-08-09
  • 打赏
  • 举报
回复
如果单独运行show_top.jsp页面,进行登录,注销。没有任何问题。

如果在 <li><html:link action="/user?method=logout">注销[${SESSION_LOGGED_ON_USER.loginName}]</html:link></li>
写上 target="_self"
那么,注销也没有问题。

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧