使用文件包含指令include
2013-04-24 21:35
337 查看
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> </td>
</tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>
copyright.jsp
<%@ page pageEncoding="GB18030"%>
<%
String copyright=" All Copyright © 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">
<%@ 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> </td>
</tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>
copyright.jsp
<%@ page pageEncoding="GB18030"%>
<%
String copyright=" All Copyright © 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">
相关文章推荐
- JSP文件中使用include指令来包含一个文本文件
- 用asp.net使用include包含文件
- include 嵌套 重复 文件包含使用条件编译处理
- easy UI使用include<>包含页面时以及加载js文件所注意的事项。
- C语言学习笔记之 第六讲:头文件源文件以及include包含指令
- asp的include包含文件深入使用
- asp的include包含文件深入使用收藏
- php中使用include(require)嵌套包含文件时的一些注意问题
- 文件包含include的三种形式的控制指令
- asp.net使用include包含文件
- asp.net使用include包含文件
- 分别应用include指令和include动作标识在一个jsp页面中包含一个文件。
- PHP包含文件函数include、include_once、require、require_once的使用
- 在rust里使用std::include!宏来包含其他文件
- ASP.NET使用包含文件,比如asp中用include的方法
- 使用#include<bits/stdc++.h>包含C++的所有头文件
- JSP常用指令 include静态包含,copy到一个页面,只编译一个jsp文件
- asp.net使用include包含文件
- html页面使用include导入php文件后多出一空白行