Download the jar http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar and add 
it to your classpath.  See if that does the trick.  This jar patches some bugs with 
the nested classes included with Struts.

Sri

-----Original Message-----
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 2:58 PM
To: [EMAIL PROTECTED]
Subject: 2 iterators on one page problem

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?



----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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to