I am trying to use an iframe in my application


mainpage.jsp
<HTML>
<BODY>
<form name="form2" method="post" action="action.jsp">

<input type="text" name="name" value=""/>

<input type="submit" name="submit" value="submit"/>

<iframe src="ifream-page.jsp" frameborder="0">

</form>
</BODY>
</HTML>


ifream-page.jsp

<HTML>
<BODY>
<input type="text" name="address" value=""/>
</BODY>
</HTML>


But when I press the submit button I can only get the “name” attribute at the action.jsp file. The value of the address field is shown as null.

So what is the reason for this.
And also I want to find the solution (get the both values at the action.jsp file) without removing the iframe.

Please help me to get the aprameter values include in iframe page…

thanks

if so please tell me a way to get the vlues of input fields that include in the iframe page

the page loaded into the iframe is a completely separate entity, and has nothing to do with the page in the main frame.

While they can communicate using cookies and Javascript, that's not recommended (just as the use of iframes is not recommended, and in fact in the latest html standard they've been removed).

This article has been dead for over six months. Start a new discussion instead.