var returnValue=window.showModalDialog("menu/menuOper!findMenus","模式窗口练习 - 网页对话框","dialogHeight=300,Width=100,menubars=0 ,scroolbars=0,toolbars=0");
   if(returnValue)
     {
      window.self.parent.frames.localhost=window.self.parent.frames.localhost;
   }  
用的是struts2   页面显示是以上左右框架布局
 
showmodaldialog  进入action 后跳转到 a.jsp ,当我在a.jsp 中提交,进入 action 跳向 b .jsp   可这b.jsp  也会变得以模试 窗口打开,如果我要在a.jsp 中点击 提交之后,把a.jsp 关闭,同时,b.jsp 
以框架的形式显示在右边,这要如何做。
  
  大哥,大姐们帮帮我。。
     小弟,对控制不是很了解。
   

解决方案 »

  1.   

    <span>http://www.com3c.com/uploadfile/201004/10/B5215412190.gif<span>
      

  2.   

    <div>http://www.com3c.com/uploadfile/201004/10/B5215412190.gif</div>
      

  3.   

    b.jsp中在head中间加段标识就可以
    <head>
    <base target="_self"/>
    <script type="text/javascript">
    function doSubmit() {
        // 替换为自己的action配置
        document.forms[0].action = "actionB.do";
        document.forms[0].submit();
    }
    </script>

    </head>
    在程序提交时用上面的doSubmit方法就没问题了。希望对你有所帮助!
      

  4.   

    在head中加,以下代码就能实现在本页面提交。<head>
    <base target="_self"/>
    </head>
      

  5.   

    听着跟郭靖想当年给他妈讲解那段话一样“这位大叔,那位大叔的”呵呵
    不过好像是听明白了
    a.jsp里面要提交的form 里面可以指定 target 属性的  给它把这个值赋成左边iframe的name就行了
      

  6.   


    a.jsp里面要提交的form 里面可以指定 target 属性 这是怎么弄的