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>

  • 相关阅读:
    VB.net byval和byref
    IOS 常用宏定义(二)
    目录权限Linux存储实验四:NFS的安装与配置
    服务器负载均衡nginx+keepalived 高可用负载均衡
    博客文件第二部分 Linux Shell高级编程技巧——第一章 深入讨论
    查看进程第二部分 Linux Shell高级编程技巧——第二章 Shell工具
    响应命令使用Ubuntu架设ftp服务器
    进程内存Linux下top命令
    客户端服务器SSH原理和使用
    安装数据空间虚拟CentOS访问Windows下共享文件
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198321.html
Copyright © 2011-2022 走看看