我在manager.jsp页面中运用了框架,分为四个部分,分别包含,head.jsp,left.jsp,right.jsp,botton.jsp;
我现在要做的是:
              在left.jsp中触发一个action后指向manager.jsp,要使它跳出left.jsp这个框,也就是不在left.jsp所在的框中显示manager.jsp(还是包括四个部分),而是要在整个浏览器窗口中显示manager.jsp,给用户的感觉不能有新窗口弹出。烦请各位同仁帮忙想想办法,小弟先行谢过!

解决方案 »

  1.   

    在left.jsp中触发action的地方,比如是个连接,在连接中加一个<a target = "right.jsp" href = "XXX.do">,我是这样做的,但愿你想要的是这样的结果。
      

  2.   

    不能啊,这样就会在right.jsp中显示manager.jsp了,而不是我想要的在整个浏览器窗口中显示manager.jsp
      

  3.   

    <a   target   =   "_self"   href   =   "XXX.do"> 
      

  4.   

    <a href='XXX.do' target="_top">left.jsp</a>
    这样就行了..._top 是跳出当前框架
      

  5.   

    你是不是想实现,点一下left.jsp中的链接,刷新当前页面呀?
      

  6.   

    这样可以,但我是struts里的forward该怎么写呢
      

  7.   

    是要刷新页面,但是必须通过action改变数据
      

  8.   

    呵呵,我刚做完的项目也是这个问题,我是用了另一个页面做的跳转,也许能帮上你,如果你需要帮忙的话,可以加我MSN:[email protected]
      

  9.   

    在left.jsp中触发action的地方用一下方式提交:
    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>