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>

  • 相关阅读:
    c语言I博客作业02
    C语言I博客作业03
    学习Java的第一步
    电脑快捷键使用方法
    《对生活的勇气》叔本华
    小学四则运算题目的程序
    Java基础教程0测试人员为什么要掌握Java基础
    maven 环境配置
    作业六:团队项目——编写项目的Spec
    作业五:团队项目——项目启动及需求分析
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198321.html
Copyright © 2011-2022 走看看