【发布时间】:2011-04-13 00:57:27
【问题描述】:
我想使用 Sitemesh decorators.xml 定义一个特定的 URL 模式。我想定义一个装饰器,它匹配所有以"/story/_NUMBER_" 结尾的 URL,以作为装饰器的目标。我试过了:
<decorator name="customMain" page="customMain.jsp">
<pattern>/story/[0-9]+</pattern>
</decorator>
但这不起作用.. 正则表达式在 decorators.xml 中有效吗?如果不是,我如何定位以上述模式结尾的 URL?
【问题讨论】:
标签: spring-mvc decorator sitemesh