@描述:父頁面parent.jsp中使用iframe添加子頁面src 添加子頁面son.jsp
<iframe ID="testIframe" Name="testIframe" src='son.jsp'></iframe>
一、解決方法:在子頁面son.jsp 頁面的form 表單屬性中加入 target=‘_parent’ struts.xml的 action 配置傳回父頁面即可。
二、子頁面son.jsp中的form:
<form method="post" id="form_fenzu_add" target="_parent" action="form_fenzu_add">
三、Struts.xml配置:
<result name="success" type="redirect">/parent.jsp</result>