I've been asking myself this question for quite some time and I haven't found a nice solution for this on the web.
So I am using Tiles2 and Spring MVC and I'd like to set the page title dynamically within the body tile. Is there a way?
<definition name="mainTemplate" template="/WEB-INF/template/main.jsp">
<put-attribute name="header" value="/WEB-INF/template/header.jsp" />
<put-attribute name="footer" value="/WEB-INF/template/footer.jsp" />
<put-attribute name="body" value="/WEB-INF/template/blank.jsp" />
</definition>
<definition name="list" extends="mainTemplate">
<put-attribute name="body" value="/WEB-INF/jsp/list.jsp" />
</definition>
my current solution is setting the title within the controller
model.addAttribute("pageTitle", "blubb");
and the doing a c:out in the template