2008/1/21, Vernon <[EMAIL PROTECTED]>: > > <definition name="new_ads" > template="/WEB-INF/jsp/categories/new_ads.jsp" > controllerClass="com.abc.xyz.web.ad.NewADComponentController"> > <put name="size" value="50"/> > </definition> > .... > <definition name="new_ads" > preparer="com.abc.xyz.web.ad.NewADViewPreparer"> > <put-attribute name="???" > value="/WEB-INF/jsp/categories/new_ads.jsp" /> <=== > what the attribute name shall be? > <put-attribute name="size" value="50"/> > </definition> >
The definitions are not equivalent! In the first version of your code, you see the "template" XML attribute: there is a "template" XML attribute in Tiles 2 too: <definition name="new_ads" preparer="com.abc.xyz.web.ad.NewADViewPreparer" template"/WEB-INF/jsp/categories/new_ads.jsp"> <put-attribute name="size" value="50"/> </definition> HTH Antonio
