You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peng Zhao <pz...@cs.ubc.ca> on 2003/06/12 10:50:11 UTC

attribute problem

How can I use <bean:write ../> to display an attribute like this?

a.getB()[0].getC().getD()

I used <bean:write name="a.b[0].c" property="d">, but failed.

Thanks!

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


Re: attribute problem

Posted by Sandeep Takhar <sa...@yahoo.com>.
I think you need to have 

a ObjectB getB(int index)

on ObjectA

where getA returns ObjectA

sandeep
--- Peng Zhao <pz...@cs.ubc.ca> wrote:
> How can I use <bean:write ../> to display an
> attribute like this?
> 
> a.getB()[0].getC().getD()
> 
> I used <bean:write name="a.b[0].c" property="d">,
> but failed.
> 
> Thanks!
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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