Mirbek Nosinov wrote: > > hi everybody > > I need you help > so next is the problem > i use struts 2.0.9 together with tiles 2.0.4 > everything is ok, but when i have next definition for tiles > > <definition name=".startPage" extends=".layout1"> > <put-attribute name="title" value="Start Page" /> > <put-attribute name="body" value="/pages/public/start.jsp" /> > <put-list-attribute name="items"> > <add-attribute value="12qw" /> > <add-attribute value="212qw" /> > <add-attribute value="132qw" /> > </put-list-attribute> > </definition> > > and then i try to use this list in my jsp page > > <tiles:useAttribute name="items" id="items" classname="java.util.List"/> > > and on this point i got the error: > org.apache.tiles.TilesException: Error including path '/layouts/public- > layout.jsp'. An exception occurred processing JSP page /layouts/public- > layout.jsp at line 26 > > line 26 is the line with my <tiles:useAttribute name="items" id="items" > classname="java.util.List"/> > > can anybody help me > > thanks in advance > > try putAttribute: <definition name=".startPage" extends=".layout1"> <putAttribute name="title" value="Start Page" /> <putAttribute name="body" value="/pages/public/start.jsp" /> <putListAttribute name="items"> <addAttribute value="12qw" /> <addAttribute value="212qw" /> <addAttribute value="132qw" /> </putListAttribute> </definition>
-- View this message in context: http://www.nabble.com/struts-2-%2B-tiles---add-list-in-tiles-definition-tf4382138.html#a12564639 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

