You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Collard, John" <JC...@UtiliCorp.com> on 2002/01/09 20:09:43 UTC

iterate issue

I am trying to iterate through a collection.  But get
"No getter method for property dailyList of bean myDailyRptForm"

Here is my code: 

DailyRptForm.jsp
		<%-- Display any daily info  --%>
		<logic:iterate id="dailyRpt" name="DailyRptForm"
property="dailyList">
			<tr>
				<td VALIGN="TOP">
					<bean:write name="dailyRpt"
property="variable1" filter="true"/>
				</td>
				<td VALIGN="TOP">
					<bean:write name="dailyRpt"
property="variable2" filter="true"/>
				</td>
				<td VALIGN="TOP">
					<bean:write name="dailyRpt"
property="variable3" filter="true"/>
				</td>
			
	            </tr>
		</logic:iterate>

DailyRptForm.java
...
    private ArrayList dailyList	= null;		// Collection of daily xxxx
found
...
    public ArrayList getDailyList() {
	return (this.dailyList);
    }
    
    public void setDailyList(boolean isAdmin) throws ServletException {
	...
    }
...
	

Any Ideas?

Thanks,

 John Collard

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


Re: iterate issue

Posted by "João Paulo G. Batistella" <jp...@cit.com.br>.
>

Strange.
But, why getDailyList returns ArrayList and setDailyList receives a boolean??

[]'s
JP


>
>     public ArrayList getDailyList() {
>         return (this.dailyList);
>     }
>
>     public void setDailyList(boolean isAdmin) throws ServletException {
>         ...
>     }
> ...
>
>
> Any Ideas?
>
> Thanks,
>
>  John Collard
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
João Paulo G. Batistella
Ci&T - Software enabling the e-world
Phone: +55 (19) 3737-4515
http://www.cit.com.br



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