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>

  • 相关阅读:
    java.net.SocketException: Unconnected sockets not implemented 解
    ios 瀑布流
    IOS --- 日期时间格式 更改
    平衡二叉树(常问问题)
    Oracle 学习笔记 17 -- 异常处理(PL/SQL)
    【Java先进】Lock、通过使用线程池
    兼容 谷歌、火狐、360系列浏览器桌面通知()有用
    iOS截取特定的字符串(正则匹配)
    改造世界、知行合一、实践论、学以致用
    如何理解“哲学家们只是用不同的方式解释世界,而问题在于改变世界”?
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198321.html
Copyright © 2011-2022 走看看