Register / Login
Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Other Application Frameworks
Can't seem to get any Sitemesh decorator patterns to work except for the /*
posted 5 years ago
We have a sample Spring+Sitemesh app. It does little to nothing. The decorators.xml file is
<decorators defaultdir="/decorator"> <!--Map decorators to request based on specific criteria.--> <decorator name="default" page="decorator.jsp"> <pattern>/*</pattern> </decorator> <!-- The pages will not be decorated. --> <excludes> <pattern>/somePage.jsp</pattern> <pattern>some/*.jsp</pattern> </excludes> </decorators>
This seems to be ok - the pages I display are suitably decorated.
A sample URL is
I am experimenting, however, and would like to specify a more specific patten in the decorator that only works for 'message.' I can't get it to work - the application displays the
without decorating it.
Any pointers would be appreciated.
Sitemesh 2.4 and SpringMVC 2.5.6
Sitemesh with Websphere6.1
Decorator pattern location
Sitemesh doesnt decorate any pages after action class is called
sitemesh exclude problem