I've a configuration similar to this one http://tiles.apache.org/tutorial/advanced/nesting-extending.html
<definition name="myapp.page.common" template="/layouts/classic.jsp"> <put-attribute name="header" value="/tiles/banner.jsp" /> <put-attribute name="menu" value="/tiles/common_menu.jsp" /> <put-attribute name="footer" value="/tiles/credits.jsp" /> </definition> <definition name="myapp.homepage" extends="myapp.page.common"> <put-attribute name="title" value="Tiles tutorial homepage" /> <put-attribute name="body" value="homepage.jsp" /> </definition> When i load the homepage, i want to just generate html from homepage.jsp and NOT every time from banner.jsp, credits.jsp, common_menu.jsp I want to cache (i.e. for an hour) the HTML generated from banner.jsp, credits.jsp, common_menu.jsp On Wed, Oct 20, 2010 at 3:46 PM, Antonio Petrelli <[email protected]> wrote: > 2010/10/20 GF <[email protected]>: >> <tiles:useAttribute name="header" cacheSeconds="3600" /> > > It does not make sense, tiles:useAttribute gets an attribute and > defines it as a scripting variable at all times, scripting variables > cannot be cached. > What's the final effect you want? > > Antonio >
