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>

  • 相关阅读:
    Ubantu 安装Redis
    传说中的WCF(5):数据协定(a)
    传说中的WCF(4):发送和接收SOAP头
    传说中的WCF(3):多个协定
    传说中的WCF(2):服务协定的那些事儿
    传说中的WCF(1):这东西难学吗?
    Linq教程
    Installutil.exe的位置和路径
    uni-app中对输入框的判断与提示(密码格式为6-12位,必须有大小写字母和数字组成)
    uni-app系列回顾总结----项目国际化
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198321.html
Copyright © 2011-2022 走看看