通过form表单提交刷新iframe
<form action="doctor/selPackage" target="projectlistframe" id="frm"> <table width="80%" border="0" cellspacing="0" cellpadding="0" class="tableleft"> <s:iterator value="packageMainTblList"> <tr> <td> <input id="packageId" name="packageId" value="<s:property value="packageId"/>" onclick="selPackage('<s:property value="packageId"/>');" type="radio"/> <s:property value="packageName"/> </td> </tr> </s:iterator> </table> </form> </div> <div class="div1_2"> <iframe frameborder="0" width="100%" height="100%" marginheight="0" marginwidth="0" scrolling="no" src="about:blank" name="projectlistframe" id="projectlistframe"></iframe> </div>
form表单中target属性与iframe的name属性绑定,iframe中src属性控制页面打开方式;当form表单提交时,iframe页面相对应的也会刷新。