私はこのようなことをしようとしています:

/ admin / *へのすべてのリクエストについて、ページをBデコレータを使用してデコレートする必要がありますが、メインアプリケーションレイアウトであるAデコレータのコンテンツにBデコレータを含める必要があります。
Sitemeshでそれを行うにはどうすればよいですか?
それも可能ですか?または、BデコレータでAから同じレイアウトを繰り返す必要がありますか?
前もって感謝します
私自身の質問に答えるために。はい、それは可能です:
私自身の例を使用すると、これはデコレータaによって装飾されているデコレータbです。
<page:applyDecorator name="a">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Decorator B</title>
<decorator:head/>
</head>
<body id="page-home">
This is a test.
</body>
</html>
</page:applyDecorator>
freemarkerを使用した例を次に示します。
<#assign decorator = JspTaglibs["http://www.opensymphony.com/sitemesh/decorator"]/>
<#assign page = JspTaglibs["http://www.opensymphony.com/sitemesh/page"]/>
<@page.applyDecorator name="a">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Decorator B</title>
<@decorator.head/>
</head>
<body id="page-home">
This is a test.
</body>
</html>
</@page.applyDecorator>