Can I access the name of the Apache Tiles definition inside ViewPreparer?

Can I access the Apache Tiles definition name inside ViewPreparer?

+6
source share
1 answer

just add attribute in xml like

<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> 
+1
source

Source: https://habr.com/ru/post/912842/


All Articles