struts怎么从一个框架集(frameSet)跳转到一个单一页面?(就象smth.org)
想要用struts做一个类似水木清华bbs那样的东西,
第一页是login.jsp
在Action里return ActionForward("index.jsp"),跳转到第2页,
第二页是主页面index.jsp(是一个FrameSet)
左边是功能菜单meny.jsp,右边是显示的内容页面main.jsp
<!--index.jsp-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎莅临</title>
</head>
<frameset name=mainframe id=mainframe frameborder=0 border=0 cols="167,*">
<frame name=menu noresize marginwidth=0 marginheight=0 src="menu.jsp">
<frame name=main marginwidth=0 marginheight=0 src="main.jsp">
</frameset>
</html>
想要注销(logout)并跳转到第一页login.jsp(跳转后浏览器的后退按钮就应该不能用了,防止后退),不知道怎么做?
我是这么试的,但是只能跳转,没有办法注销。因为link没有什么触发相关事件。
在第2页的左边的menu.jsp里放了一个<html:link page="/login.jsp" target="_top">
代码为:
<html:html>
<head>
</head>
<body>
<html:form action="/logoutAction.do">
<table>
<tr>
<td>Hello,<bean:write name="loginForm" property="username"/></td>
<td><html:link page="/login.jsp" target="_top"><bean:message key="menu.logout.Title"/></html:link>
</td>
</tr>
</table>
</html:form>
另一种方法;放一个按钮,可以在Action里写注销事件,但是跳转时只能把左半边的menu.jsp跳转到login.jsp,右边的main.jsp还在,整个框架集还在。怎么才可以把整个FrameSet跳转到login.jsp?