SSH2装饰器的decorators.xml

<?xml version="1.0" encoding="UTF-8"?>

<decorators defaultdir="/decorators">
    <!-- 在excludes元素下指定的页面将不会由SiteMesh来装饰 -->
    <excludes>
        <pattern>/exclude.jsp</pattern>
        <pattern>/exclude/*</pattern>
        <pattern>/css/*</pattern>
        <pattern>/js/*</pattern>
        <pattern>/images/*</pattern>
        <pattern>/decorators/*</pattern>
        <pattern>/admin/login.action</pattern>
        <pattern>/index/user/user!regist.action</pattern>
        <pattern>/index/classify/content!choseFolder.action</pattern>
        <pattern>/index/store/folder!choseFolder.action</pattern>
       
       
    </excludes>

    <!-- 创建一个名为main的装饰器,该装饰器页面为main.jsp,
        用于装饰pattern指定的URL的所有页面-->
    <decorator name="admin" page="admin/admin.jsp">
        <pattern>/admin/welcome.action</pattern>
        <pattern>/admin/pubinfo/*</pattern>
        <pattern>/admin/classify/*</pattern>
        <pattern>/admin/user/*</pattern>
        <pattern>/admin/promotion/promotion.action</pattern>
        <pattern>/admin/region/region.action</pattern>
        <pattern>/admin/promotion/promotion.action</pattern>
    </decorator>
   
    <decorator name="admin-input" page="admin/input.jsp">
        <pattern>/admin/user/*!input.action</pattern>
        <pattern>/admin/classify/classify!input.action</pattern>
        <pattern>/admin/classify/classify!parent.action</pattern>
        <pattern>/admin/classify/classify!clsForm.action</pattern>
        <pattern>/admin/pubinfo/*!input.action</pattern>
        <pattern>/admin/region/region!input.action</pattern>
        <pattern>/admin/promotion/promotion!input.action</pattern>
       
    </decorator>
   
    <decorator name="index" page="index/index.jsp">
        <!--pattern>/index/classify/index*</pattern-->
        <pattern>/index/index.action</pattern>
    </decorator>
   
    <decorator name="city" page="index/city.jsp">
        <pattern>/index/area/*</pattern>
    </decorator>
</decorators>
 

你可能感兴趣的:(Decorator)