This is the same as getFather().getName().  You can
also use nested properties for html:text and all the
other Struts tags.

<bean:write name="bean" property="father.name"/>

Arrays are supported to.
<bean:write name="bean" property="name[0]"/>

David

--- Andreas Leitner <[EMAIL PROTECTED]> wrote:
> 
> Now, this may be a really stupid question and may
> not even fit this
> list. If that's the case please give me a hint where
> I could look for an
> answere.
> 
> I can render a property of a bean using
> <bean:write>, but what if I want
> to render to a property, but a property of a
> property?
> 
> Imagine the class:
> Person
>       String name;
>       Person father;
> 
> If I have a given person instance in a bean named
> "foo", I can render
> it's name via
> <bean:write name="bean" property="name"/>
> But how can I render the name of foo's father?
> 
> Many thanks in advance,
> Andreas
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to