Yes, this is very much doable.

I would take a closer look at the getter in class B -- in particular the case, is it 
getHldC().

Is it working ok for the first level?  That would indicate if you are getting the 
right *kind* of object.

Sri

-----Original Message-----
From: Gopal Mukkamala [mailto:gmukkamala@;yahoo.com] 
Sent: Wednesday, October 30, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: Can Nested Tag lib go 2 Level Deep.


============================
Class A
{
private int a;
List hldB ;//holds references for class B
}

Class B
{
int b;
List hldC; ;//holds references for class C
}

Class C {
int c;
} 
============================

Is it possible with nested tag libs to 
get hldC from Class A and iterate ?

<bean id="A">
<nested:root name="fA">
          <nested:write property="a" />
        <nested:iterate property="hldB">
          <nested:write property="b" />
            <nested:iterate property="hldC">
              <nested:write property="c" />
           </nested:iterate>
        </nested:iterate>
</nested:root>
It gives me method not defined,
property hldB[0].hldC
while the method is there in CLASS B?

Is it a doable thing and if yes HOW?

Please advise.
Gopal

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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


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

Reply via email to