我在manager.jsp页面中运用了框架,分为四个部分,分别包含,head.jsp,left.jsp,right.jsp,botton.jsp;
我现在要做的是:
在left.jsp中触发一个action后指向manager.jsp,要使它跳出left.jsp这个框,也就是不在left.jsp所在的框中显示manager.jsp(还是包括四个部分),而是要在整个浏览器窗口中显示manager.jsp,给用户的感觉不能有新窗口弹出。烦请各位同仁帮忙想想办法,小弟先行谢过!
我现在要做的是:
在left.jsp中触发一个action后指向manager.jsp,要使它跳出left.jsp这个框,也就是不在left.jsp所在的框中显示manager.jsp(还是包括四个部分),而是要在整个浏览器窗口中显示manager.jsp,给用户的感觉不能有新窗口弹出。烦请各位同仁帮忙想想办法,小弟先行谢过!
这样就行了..._top 是跳出当前框架
document.FormLeft.action = "<html:rewrite page='/TestAction.do"/>"
document.FormLeft.target = "_top";
document.FormLeft.submit();在xml中:<action path="/TestAction"
type="action.TestAction"
name="FormTop"
scope="request">
<forward name="success" path="/manager.jsp" />
<forward name="error" path="/SysError.jsp" />
</action>