JSP include instruction: the instruction that contains the file

<%@include file="file url"%>

<%@include file = "welcome.jsp?name=yxq"%>

Example

<%@include file = "welcome.jsp"%>

Typical application

 <%@page pageEncoding="UTF-8"%>
 <img src="images/banner.jpg">
  <%@page pageEncoding="UTF-8"%>
  <table width="780"height="102"border="0"cellpadding="0"cellspacing="0"background=
         "images/copyright.jpg">
    <tr>
      <td></td>
    </tr>
  </table>
<%@page language="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%>
<html>
    <head>
      <Meta http-equiv="Content-Type"content="text/html;charset=UTF-8">
      <title>使用文件包含include指令</title>
    </head>
    <body style="margin:0px;">
      <div align="center">
        <%@include file="top.jsp"%>
          <table width="780"height="205"border="0"cellpadding="0"cellspacing="0"background=
                 "images/center.jpg">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <%@include file="copyright.jsp"%>
       </div>
    </body>
</html>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>