@描述:父页面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>