大家好,我在struts2中使用sitemesh,在母版页中我想使用<page:applyDecorator page="cruduser.action" name="panel"/>标签加入另外的一个母版页。但是提示“cruduser.action did not create a valid page to decorate”。代码如下:
<body>
<div>母版页的标题</div>
<page:applyDecorator page="cruduser.action" name="panel"></page:applyDecorator>
<table>
<tr>
<td><decorator:title/></td>
</tr>
<tr>
<td><decorator:body/></td>
</tr>
</table>
<div>母版页的footer</div>
</body>望求教
<body>
<div>母版页的标题</div>
<page:applyDecorator page="cruduser.action" name="panel"></page:applyDecorator>
<table>
<tr>
<td><decorator:title/></td>
</tr>
<tr>
<td><decorator:body/></td>
</tr>
</table>
<div>母版页的footer</div>
</body>望求教
另,sitemesh的毛病就是性能问题。Tiles就好一些。
<page:applyDecorator name="common">
<s:action name="naviBar" namespace="/" executeResult="true" />
</page:applyDecorator>