views:

53

answers:

0

If anyone could show me how to mark up sitemesh.xml for the CookieDecoratorMapper I would appreciate it. Here's what I have now:

1) A cookie named "sitemesh" with a value of "green".
2) A decorator named "decorator-green.jsp".
3) A default decorator named "decorator.jsp".
4) All URLs mapped to decorator.jsp in decorators.xml.
5) The following markup in sitemesh.xml for the cookie mapper:

<mapper class="com.opensymphony.module.sitemesh.mapper.CookieDecoratorMapper">
    <param name="cookie.name" value="sitemesh"/>
</mapper>