如何从html格式的iframe中检索信息? [英] How do I retrieve information from an iframe in an html form ?
问题描述
我有两个文件:
1. syllabusContent.jsp
2. syllabusRichTextEditor.jsp
syllabusContent.jsp 包含一个表单,我有一个
I have two files :
1. syllabusContent.jsp
2. syllabusRichTextEditor.jsp
The syllabusContent.jsp contains an form and I have an
<iframe>
元素,格式如下所示:
element in the form as shown in the code below:
<div>
Syllabus
<iframe src="../syllabusRichTextEditor.jsp" width="1200" height="400"></iframe>
</div>
现在在我的 syllabusRichTextEditor.jsp 中,我有以下代码:
Now in my syllabusRichTextEditor.jsp I have the following piece of code:
<textarea id="tinyeditor" name="syllabus" style="width: 100%; height: 200px">
${sessionScope.coreCoursesBean.syllabus}
</textarea>
因此,当我尝试显示表单的内容时,它没有显示
中包含的字符串
So When I am trying to display the contents of the form it is not displaying the string contained in
${sessionScope.coreCoursesBean.syllabus}
其次,
当我单击Submit时,我甚至希望将在textarea中输入的课程表都提交给我的servlet,这不会暂停.
所以基本上我想知道如何在两个jsp之间进行通信?
secondly,
when I click on submit, I want even the syllabus entered in the textarea to be submitted to my servlet, which is not hapenning.
So basically I want to know how to communicate between two jsp`s?
推荐答案
{sessionScope.coreCoursesBean.syllabus} < /textarea >
{sessionScope.coreCoursesBean.syllabus} </textarea>
因此,当我尝试显示表单的内容时,它没有显示
中包含的字符串
So When I am trying to display the contents of the form it is not displaying the string contained in
{sessionScope.coreCoursesBean.syllabus}
{sessionScope.coreCoursesBean.syllabus}
其次,
当我单击Submit时,我甚至希望将在textarea中输入的课程表都提交给我的servlet,这不会暂停.
所以基本上我想知道如何在两个jsp之间进行通信?
secondly,
when I click on submit, I want even the syllabus entered in the textarea to be submitted to my servlet, which is not hapenning.
So basically I want to know how to communicate between two jsp`s?
这篇关于如何从html格式的iframe中检索信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!