老土豆T 2003-03-25 11:18:34
如果 在
<form action="test.NewsSave" method="post">
<iframe name="nengrong" src="test.htm"><iframe>
</form>

test.htm里面是一个编辑好的超文本
内容就是:<html><head><body>我写的一些东西</body></head> </html>


我记得asp以前是可以得到这些文本的。

在jsp里怎么做??

谢谢各位前辈..诚挚送上200分。
...全文
129 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
kreven 2003-04-04
  • 打赏
  • 举报
回复
还有什么问题呀
yzxasd 2003-03-31
  • 打赏
  • 举报
回复
还有什么问题
我可等着你的分
老土豆T 2003-03-26
  • 打赏
  • 举报
回复
yzxasd(风)

我也想给啊...但是问题好象还没解决...
yzxasd 2003-03-25
  • 打赏
  • 举报
回复
那到不一定要放到table里,我有点迷糊,我测试可以啊
kreven 2003-03-25
  • 打赏
  • 举报
回复
你的iframe不是在这里吗?怎么会在jsp里?
你可以把iframe内容全部写在jsp里,然后写这句在<jsp:include page="xxx.jsp"/>在form中。

关键一点,你的iframe一定要写在table标签里,否则是看不到的。
zxhong 2003-03-25
  • 打赏
  • 举报
回复
改后缀名为txt不就可以了!
yzxasd 2003-03-25
  • 打赏
  • 举报
回复
是不是form的名称问题

test.htm里面是一个编辑好的超文本
内容就是:<html><head><body>我写的一些东西</body></head> </html>

在test.htm里有没有form啊,你是要取得test.htm里的form元素的值吗?

我帮你测试
cathylee 2003-03-25
  • 打赏
  • 举报
回复
好象不可以吧!
beijingwhitney 2003-03-25
  • 打赏
  • 举报
回复
主页面
<form name="form1" method="POST" action="***.jsp">

<IFRAME name="TorA" height=30 width=200 frameborder="no" src='++++.jsp' scrolling="no"></IFRAME>
<input type="submit" class=input1 value="保存" name="butsave" >

frame.src页面
<input type='text' name='name_PY' class='text' value="">

提交页面
name_PY=request.getParameter("name_PY");


你可以在提交前用alert(window.nengrong.document.all.名称.value)检查一下
zpwly 2003-03-25
  • 打赏
  • 举报
回复
和asp的一样!src指定那个,就显示那个!
老土豆T 2003-03-25
  • 打赏
  • 举报
回复
beijingwhitney(beijing)

是呀,是用这个的..
beijingwhitney 2003-03-25
  • 打赏
  • 举报
回复
是用request.getParameter()吗?
老土豆T 2003-03-25
  • 打赏
  • 举报
回复
beijingwhitney(beijing) 得不到任何值..5555
beijingwhitney 2003-03-25
  • 打赏
  • 举报
回复
与普通的form一样
老土豆T 2003-03-25
  • 打赏
  • 举报
回复
up
yzxasd 2003-03-25
  • 打赏
  • 举报
回复
不要万分拉
就200
老土豆T 2003-03-25
  • 打赏
  • 举报
回复
因为test.htm里 只写了
<script>
var doc_html_html="";
if(parent.parent && parent.parent.doc_html_html)doc_html_html=parent.parent.doc_html_html;
else document.write("<script src=rte.js><\/script>");
</script>

<script>
if(doc_html_html=="")setTimeout("location.reload()",1000);
else
document.write(doc_html_html);
</script>

而rte.js 写了一个 htmlediter 的功能函数
老土豆T 2003-03-25
  • 打赏
  • 举报
回复
yzxasd(风) 万分感谢


我test.htm 里没有form
kreven 2003-03-25
  • 打赏
  • 举报
回复
对不起,我搞错了。iframe是一个对象,所以不用一定写在table里

81,116

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧