我想在项目中排除某些文件的sitemesh装饰器。但是怎么做我的文件名是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>
任何帮助?感谢
答案 0 :(得分: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>