0

Struts1.3でタイルプラグインを使用する方法を学んでいます。

私は次のようにlayout.jspを作成しました:

   <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
            <title>Layout Page</title>
        </head>

        <body>
            <table width="90%" border="0">
                 <tr>
                    <td><tiles:insert attribute="header" /></td>
                </tr>
                <tr>
                  <td><tiles:insert attribute="content" /></td>
                </tr>
                <tr>
                 <td><tiles:insert attribute="footer" /></td>
                </tr>
        </table>

        </body>

    </html>

header.jsp、footer.jsp、content.jspを実行する私の質問では、ページディレクティブと完全なhtml-head-body構造を個別に持つ必要がありますか?

4

1 に答える 1