zoukankan      html  css  js  c++  java
  • 国庆第二天

    本日主要是看《Spring攻略》部分内容以及去公司拿资料,回来其他时间主要用于对付菜单显示问题,母版页面问题,目前使用siteMash。

    下面介绍SiteMash配置

    1. 引入jar包sitemesh-3.0-alpha-2.jar

    2. web.xml

    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>org.sitemesh.config.ConfigurableSiteMeshFilter</filter-class>
      </filter>
    
    <filter-mapping>
            <filter-name>sitemesh</filter-name>
            <url-pattern>/*</url-pattern>
    </filter-mapping>
    3. WEB-INF/sitemesh3.xml
    <sitemesh>
      <mapping path="/*" decorator="/WEB-INF/view/common/layout.jsp"/>
       <mapping path="*login.do*" exclue="true"/>
      <mapping path="*logout.do*" exclue="true"/>
     
    </sitemesh>

    4. 模板页

    <sitemesh:write property='title'></sitemesh:write>

    <sitemesh:write property='body'></sitemesh:write>

  • 相关阅读:
    UOJ#310. 【UNR #2】黎明前的巧克力(FWT)
    cf24D. Broken robot(高斯消元)
    loj#2483. 「CEOI2017」Building Bridges(dp cdq 凸包)
    给博客园加一个会动的小人-spig.js
    loj#6033. 「雅礼集训 2017 Day2」棋盘游戏(二分图博弈)
    loj#6032. 「雅礼集训 2017 Day2」水箱(并查集 贪心 扫描线)
    洛谷P4103 [HEOI2014]大工程(虚树 树形dp)
    Oracle DB SQL 性能分析器
    ORA-000845 与 /dev/shm(tempfs)
    ID3DXMesh接口 创建自己的立方体网格
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198321.html
Copyright © 2011-2022 走看看