zoukankan      html  css  js  c++  java
  • 使用文件包含指令include

    index.jsp

    <%@ page language="java" contentType="text/html; charset=GB18030"
        pageEncoding="GB18030"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
    <title>使用文件包含include指令</title>
    </head>
    <body style="margin:0px;">
    <%@ include file="top.jsp"%>
    <table width="781" height="279" border="0" cellpadding="0" cellspacing="0" background="images/center.JPG">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <%@ include file="copyright.jsp"%>
    </body>
    </html>

    copyright.jsp

    <%@ page pageEncoding="GB18030"%>
    <%
    String copyright="&nbsp;All Copyright &copy; 2009 吉林省明日科技有限公司";
    %>
    <table width="778" height="61" border="0" cellpadding="0" cellspacing="0" background="images/copyright.JPG">
      <tr>
        <td> <%= copyright %></td>
      </tr>
    </table>

    top.jsp

    <%@ page pageEncoding="GB18030"%>
    <img src="images/banner.JPG">

  • 相关阅读:
    相关书籍下载2
    神奇的null和undefined
    相关书籍下载1
    微信小程序之for循环
    渐变(Gradients)
    模拟今日头条顶部导航菜单
    网格布局之相关特性
    网格布局之合并单元格
    网格布局
    Linux常用命令
  • 原文地址:https://www.cnblogs.com/delphione/p/3041094.html
Copyright © 2011-2022 走看看