0
我想使用Sitemesh decorators.xml来定义特定的URL模式。我想定义一个装饰器,它匹配所有以"/story/_NUMBER_"
结尾的URL,并由装饰器定位。我尝试过:使用装饰器匹配模式
<decorator name="customMain" page="customMain.jsp">
<pattern>/story/[0-9]+</pattern>
</decorator>
但是这不起作用..正则表达式在decorators.xml中工作吗?如果不是,我该如何定位以上述模式结束的URL?