I am planning to use apache tiles in my SpringMVC application. The parent template have dynamic header and left side bar. Those contents also need model data from database. So, every request need to prepare those data such as user menus.
I don't think those data preparing should be put into every SpringMVC Controller's method.
So, is there any good practice to do it?
                        
I have created a default tiles definition with a global
cssandjsfile.yourpage.jspextends this definition and add two files to it:yourpage.jsandyourpage.csstiles.xml
tiles.jsp
Hope this may be of help