First of all I see that you are mixing Tiles 2 and Tiles 1 syntax, why?ù Did you read this: http://tiles.apache.org/framework/migration/index.html
Antonio 2009/8/6 Peter Bliznak <[email protected]>: > Hi, > translating this 4-5 years old code which was using Tiles1.something into 2.1 > and run into following problem. > > here is basic (abbreviated) tiles structure: > > <definition name="doc.mainLayout" template="/layout/classicLayout.jsp"> > .... > <put-attribute name="heading" value="/include/Heading.jsp"/> > ...... > </definition> > > here is instance tile extending mainLayout > > <!-- *********************************************** > * > * MRInfo page > * > ******************************************** --> > <definition name="mnr.card" extends="doc.mainLayout"> > <put name="body" value="mnr.card.form"/> > <put name="lowerbutton" value="/include/Lower-Mnr.jsp"/> > <putList name="headingList"> > <add value="message.ministry.title"/> > <add value="message.MNRInfo.title"/> > </putList> > </definition> > > <definition name="mnr.card.form" extends="doc.formLayout"> > <put name="formAction" value="/MNRInfoAction"/> > <put name="formBody" value="/mnr/address/MNRInfo.jsp"/> > <put name="formClearEnabled" value="false"/> > <put name="formHelpEnabled" value="false"/> > <put name="TopNavigationButtonEnabled" value="false"/> > </definition> > > ******************************************** > > > Now inside Heading.jsp page I am trying to import "headingList" .....and that > is causing error - headingList not found. > Original code was not using import but <tiles:useAttribute > name=headingList................... tried that but that is causing null > pointer exp. > Obviously I cannot even to the point where I would start iterating over that > list. > > This seems to be very simple scenario and it works in old version..but I have > tried just'bout anything here and no luck > > Any help would be appreciated > > Peter.
