1

我想在项目中为我的一些文件排除站点网格装饰器。但怎么做。我的文件名是 listApps.jsp

这是我的 decorators.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/WEB-INF/pages">
<excludes>
    <pattern>/j_spring_security_logout</pattern>
    <pattern>/pages/logout-redirect.jsp</pattern>
    <pattern>/flexweb/*</pattern>
    <pattern>/ApplicationScaffold.html</pattern>
    <pattern>/listApps.html</pattern>
</excludes>

<decorator name="main" page="main.jsp">
    <pattern>/*</pattern>
</decorator>

有什么帮助吗?谢谢

4

1 回答 1

0

好吧,您可以创建另一个名为 nothingfancy 的模板,并且您无需为该模板做任何特别的事情

把它放在第一位,以便在之前对其进行评估

<?xml version="1.0" encoding="utf-8"?>
<decorators defaultdir="/app/decorators">

    <decorator name="nothingfancy" page="nothingfancy.jsp">
        <pattern>/j_spring_security_logout</pattern>
        <pattern>/pages/logout-redirect.jsp</pattern>
        <pattern>/flexweb/*</pattern>
        <pattern>/ApplicationScaffold.html</pattern>
        <pattern>/listApps.html</pattern>
    </decorator>

    <decorator name="main" page="main.jsp">
        <pattern>/*</pattern>
    </decorator>
</decorators>
于 2013-04-30T18:27:50.887 回答