请教:如何在jsp页面中插入.htm文件。在线等

nocandy 2003-10-15 10:42:16
在jsp页面中希望插入的.htm文件是由xml文档另存为得到的。
我在表格中直接使用<%@include file="123.htm"%>,结果可以成功显示,但原来页面中的样式表局部发生变化。请教如何正确的包含.htm文件!
...全文
76 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
nocandy 2003-10-17
  • 打赏
  • 举报
回复
<iframe src="123.htm" width=200 height=200 frameborder=0 scrolling=auto></iframe>
不错!多谢!
ratjohn 2003-10-15
  • 打赏
  • 举报
回复
<jsp:include page="123.htm"/>

<%@include file="123.htm"%>
有什么区别吗
foolfish 2003-10-15
  • 打赏
  • 举报
回复
你注意一下被包含文件里应用样式表文件的路径

pageContext.include("123.htm");
放在jsp文件里
<%
pageContext.include("123.htm");
%>

- -
nocandy 2003-10-15
  • 打赏
  • 举报
回复
应该是:<jsp:include page="123.htm"/>显示效果和<%@include file="123.htm"%>一样

pageContext.include("123.htm");放在什么地方,位置如何订。
foolfish 2003-10-15
  • 打赏
  • 举报
回复
pageContext.include("123.htm");
mtou 2003-10-15
  • 打赏
  • 举报
回复
<jsp:include page="123.htm">
xinshou1979330 2003-10-15
  • 打赏
  • 举报
回复
用这<%@include file="123.htm"%>中形式的不错啊

随意
chenggx 2003-10-15
  • 打赏
  • 举报
回复
hehe
redlevin 2003-10-15
  • 打赏
  • 举报
回复
<iframe src="123.htm" width=200 heigt=200 frameborder=0 scrolling=auto></iframe>

81,090

社区成员

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

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