struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 14042005 <barahonachr...@yahoo.es>
Subject Re: struts 2 + tiles - add list in tiles definition
Date Fri, 07 Sep 2007 22:54:22 GMT


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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message