A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Other Application Frameworks
Can't seem to get any Sitemesh decorator patterns to work except for the /*
Joined: May 22, 2003
Jun 01, 2010 14:08:58
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.
I agree. Here's the link:
subject: Can't seem to get any Sitemesh decorator patterns to work except for the /*
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015