用框架啊,或者用IFRAME嵌入页面

解决方案 »

  1.   

    把这部分公共内容单独写成一个Jsp文件,其它要显示这个页面的Jsp文件用include标记把这个文件插入当前文件,都是这么做的!
      

  2.   

    用iframe嵌入啊,不曉得jsp:include行不,你試試~~~
      

  3.   

    做三个页 header.html toc.html  footer.html 其中footer.html中填写授权信息
    如果代码不懂 去看html语法<html>
    <head>
    <title>版权信息</title>
    </head>
    <frameset rows="133,*,55" cols="*">
      <frame src="header.html" name="header" title="header" scrolling="no"  target="body" noresize="noresize">
      <frameset cols="24%, *" frameborder="1" framespacing="3">
    <frame frameborder="2" marginwidth="0" marginheight="0" src="toc.html" name="frame" title="TOC">
    <frame frameborder="2" src="/837.html" name="body" title="help">
      </frameset>
      <frame src="footer.html" name="footer" title="footer" scrolling="no">
      <noframes>
      <p><br />
      </p>
      </noframes>
    </frameset></html>
      

  4.   

    <%@ include file="Top.htm"%>Top.htm内容如:
    <table width="100%" border="0" align=center cellpadding="3" cellspacing="0" class="tableBorder1" style="width:100%">
      <tr>
        <td class="bodytitle" height=25><table height="100%" width="100%" border=0 cellpadding=0 cellspacing=0>
            <tr valign=middle>
              <td width=40><img src="images/manage/i_home.gif"> </td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height=10></td>
      </tr>
    </table>
      

  5.   

    谢谢,但是不知道这个include和frameset那个效率高。。
      

  6.   

    include 吧...
    不是所有浏览器都支持frameset的.
      

  7.   

    但是用include 有个问题
    所include的文件中的一些图片了什么的路径问题不好解决哪位知道也请解答一下
    小弟先谢了
    也帮楼主up!!!
      

  8.   

    include 文件的路径用当前文件的路径!
      

  9.   

    include路径就用相对路径那种就行了,实在不行才考虑写绝对的
      

  10.   

    用include就可以,通常首页是index.jsp,上面文件top.jsp,下面文件bottom.jsp(这两个文件可以静态HTML页),你要求的内容就可以写在bottom.jsp中,而index.jsp中用<%@ include file="bottom.jsp"%>index.jsp/top.jsp/bottom.jsp放在同一目录下,这样也不会出现绝对路径问题
      

  11.   

    如楼上的说。。那如果是静态页面呢
    html,该怎么办?
      

  12.   

    还是用JavaScript的一一document.write()出来吧。
    这样不管是Html还是jsp都可以引用了。
      

  13.   

    写一个页面bottom.jsp把版权,联系方式等信息写好 然后需要用到的地方<%@include file = "bottom.jsp"%> 就可以了
      

  14.   

    要不就用dreamweaver里的library,就是传起来麻烦点
      

  15.   

    把这部分公共内容单独写成一个Jsp文件,其它要显示这个页面的Jsp文件用include标记把这个文件插入当前文件,都是这么做的!