You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gopal Mukkamala <gm...@yahoo.com> on 2002/10/30 20:55:13 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>