struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: 2 iterators on one page problem
Date Tue, 15 Jul 2003 19:08:48 GMT
--- Mykola Ostapchuk <mykost@sympatico.ca> wrote:
> Hi,
> I have a problem placing 2 <logic:iterate..> with nested tags on one
> jsp.
> When I put any of iterations below - they work fine. But when I put them
> together, one after another, I receive an error:
> 
> org.apache.jasper.JasperException: No getter method for property
> projects of
> bean projectsID
> 
> Strange, bean projectsID doesn't have 'projects' property at all...
> Any suggestions?

There are several open bugs against the nested tags so you may be running
into one of those.  Are you using a Servlet 2.3 container (ie. Tomcat
4.x)?  If so, you could use JSTL tags to write the page much more
concisely than the Struts tags.

David


> 
> 
> 
> ----1st  iteration----
> 
> <logic:iterate id="projectsID" name="projectsBean" scope="request"
> type="com.iprs.core.test.Project" indexId="i">
>    <nested:root name="projectsID">
> 
>    <nested:iterate id="pers" type="com.iprs.core.test.Person"
> property="persons">
>      <bean:write name="pers" property="firstname" ignore="true"/>&nbsp;
>     </nested:iterate>
> 
>   </nested:root>
> </logic:iterate>
> 
> 
> ----2nd  iteration----
> 
> <logic:iterate id="personsID" name="personsBean" scope="request"
> type="com.iprs.core.test.Person" indexId="i">
>    <nested:root name="personsID">
> 
>    <nested:iterate id="proj" type="com.iprs.core.test.Project"
> property="projects">
>      <bean:write name="proj" property="title" ignore="true"/>&nbsp;
>    </nested:iterate>
> 
> </nested:root>
> </logic:iterate>
> 
> 
> Regards,
> Mykola Ostapchuk
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message