| | |
how use iframes in a form
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2006
Posts: 68
Reputation:
Solved Threads: 0
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
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
That is reason why there are only certain types of components which can be part of the form. Iframe is not one of them...
Check it
http://www.w3schools.com/html/html_forms.asp
Check it
http://www.w3schools.com/html/html_forms.asp
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
don't use iframe, that whar I can say
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
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).
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Centering a form in VB.NET (VB.NET)
- Scrolling MDI Child form (Visual Basic 4 / 5 / 6)
Other Threads in the JSP Forum
- Previous Thread: upload csv to tomcat using jsp
- Next Thread: jsp sessions and scriptlet
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






