iframe子页面 a.jsp
<logic:present name="listFDC">
<logic:iterate id="it" name="listFDC" indexId="index">
<input type="checkbox" id="fdcdispaly" name="fdcdispaly" value="${it.wppid}" οnclick="getValue();"/>${it.wppname}<br>
</logic:iterate>
</logic:present>
<input id="hi" name="hi" type="hidden" value="" />
父页面
<iframe align="center" height="200" id="win" name="win" frameborder="0" scrolling="yes" src="./admin/a.jsp"></iframe>
提交
<input type="button" value="确定" οnclick="javascript:tosubmit();"/>
function tosubmit()
{
if(verify()==true)
{
document.forms[0].fdcdispaly.value=window.frames['win'].document.getElementById('hi').value;
// alert(document.forms[0].fdcdispaly.value+"test");
document.forms[0].method="post";
document.forms[0].submit();
}
}