You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Krygowski <ja...@shaws.com> on 2002/07/23 19:10:21 UTC

nested:iterate nested colletions

Hi -

I'm trying to work out the usage of the nested:iterate tag.  I have three
beans, one called report which contains an array list of years.  The year
bean contains an array list of weeks.  each bean has a get method that
returns an object array.

This is my markup:

<nested:nest property="reportForm"/>
Report Name: <nested:write property="reportName"/>
<nested:iterate property="year">
    <nested:write property="yearname"/>
	<nested:iterate property="week">
		<nested:write property="weekname"/>
	</nested:iterate> <!-- week -->
</nested:iterate> <!-- year -->
</nested:nest>

when i run this code, i get the following error:

javax.servlet.ServletException: No getter method for property year[0].week
of bean reportForm

why am i getting this error?

thanks,

jim


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>