![](/img/trans.png)
[英]Apache Tiles - Unable to access beans in a custom ViewPreparer in Spring MVC
[英]Can I access the Apache Tiles definition name inside a ViewPreparer?
是否可以在 ViewPreparer 中訪問 Apache Tiles 定義名稱?
只需將屬性添加到 xml 中,例如
<definition name="t.*" extends="t.container">
<put-attribute name="body" value="/WEB-INF/jsp/{1}.jsp"/>
<put-attribute name="title" expression="${song.title} - ${song.author} in ${jukebox.name}"/>
<put-attribute name="view" value="t.{1}"/>
</definition>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.