请教关于子框架iframe往父框架中传值问题?
各位高手:
我想要把iframe子框架中的变量值传到父框架中的变量中,请问怎么传?
我的iframe子框加如下:
<%
String photo=request.getParameter("photo");
%>
<body leftmargin="1" topmargin="1" marginwidth="1" marginheight="2">
<table width="100%" border="0" align="center">
<form action="/servlet/homestead.insertphoto" method="post" enctype="multipart/form-data" name="form1">
<tr>
<td height="23" valign="middle">
<input name="photo" type="file" id="photo" size="40">
<input name="Submit" type="submit" id="submit" value="上传图片">
<div align="center"> </div></td>
</tr></form>
</table>
</body>
如何把photo的值传到主框架addst.jsp中呢?不用session,只用传递参数,我在addst.jsp中是不是可以用一个隐藏变量来接收呢?