layout.jsp

来自「一个Struts案例....StudentManager」· JSP 代码 · 共 54 行

JSP
54
字号
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
   <head>
      <title><bean:message key="title"/></title>
   </head>
   <body >
        <%-- One table lays out all of the content --%>
		<table width="100%" height="40" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td height="15%">
<tiles:insert attribute="header"/>
</td>
  </tr>
</table>

      <table width="100%" height="480">
         <%-- Sidebar section --%>
         <tr>
            <td width="150" valign="top" align="left" bgcolor="#CCFFCC"><div align="center">
              <blockquote>
                <p align="left">&nbsp;</p>
              </blockquote>
            </div>
              <tiles:insert attribute="sidebar"/>
            </td>
            <%-- Main content section --%>
            <td valign="top" height="100%" width="*">
               <table width="100%" height="100%">
                  <tr>
                     <%-- Header section --%>
                     
                  <tr>
                  <tr>
                     <%-- Content section --%>
                     <td valign="top" height="*">
                        <tiles:insert attribute="content"/>
                     </td>
                  </tr>
                  <tr>
                     <%-- Footer section --%>
                     <td valign="bottom" height="15%">
                        <tiles:insert attribute="footer"/>
                     </td>
                  </tr>
               </table>
            </td>
        </tr>
      </table>
   </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?