吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:include指令

<%@ page contentType="text/html; charset=GBK" language="java" errorPage=""%>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>静态include测试title>
    head>
    <body>
        
        <%@ include file="scriptlet.jsp" %>
    body>
html>
<%@ page contentType="text/html; charset=GBK" language="java"
    errorPage=""%>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>小脚本测试title>
head>
<body>
    <table bgcolor="#9999dd" border="1" width="300px">
        
        <%
            for(int i=0; i<10; i++){
                %>
        <tr>
            <td>循环值td>
            <td><%=i %>td>
        tr>
        <%
            }
         %>
    table>
body>
html>

吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:include指令_第1张图片

 

你可能感兴趣的:(吴裕雄--天生自然JAVA开发JSP-Servlet学习笔记:include指令)