You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Mirbek Nosinov <mi...@gmail.com> on 2007/09/05 10:11:00 UTC

struts 2 + tiles 2 - problem with list in definition

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

Re: struts 2 + tiles 2 - problem with list in definition

Posted by Antonio Petrelli <an...@gmail.com>.
2007/9/5, Mirbek Nosinov <mi...@gmail.com>:
> 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 you post the complete stacktrace, please?

Antonio