You can just add an accessor in your bean and in your class

public class ClientVO
>    extends java.lang.Object
>    implements java.io.Serializable 
> {
> ....
>    private java.lang.String name;

public String getName()
{
    return name;
}

and in your bean

public class AssociateVO
>    extends java.lang.Object
>    implements java.io.Serializable 
> {
> ....
>    private com.nielsenmedia.mam.vo.ClientVO Client;


puiblic String getClientName()
{
return Client.getName();
}




__________________________________________
Lionel Roux
mail: [EMAIL PROTECTED]
__________________________________________
This messages is certified virus free by NAV 2003
----- Original Message ----- 
From: "Curley, John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 11:13 PM
Subject: accessing bean contained object


> 
> Hi, All:
> 
> I have a bean that I am using in a jsp page
> 
> public class AssociateVO
>    extends java.lang.Object
>    implements java.io.Serializable 
> {
> ....
>    private com.nielsenmedia.mam.vo.ClientVO Client;
> 
> This contained object has a member I need to access:
> 
> public class ClientVO
>    extends java.lang.Object
>    implements java.io.Serializable 
> {
> ....
>    private java.lang.String name;
> 
> How can I access this member?  I've tried this and it did not work:
> 
>  <logic:iterate id='associate' name='associateList' scope='request'>
>      <bean:write name='associate' property='Client.name'/>
> 
> this threw an exception saying that it could not find the property
> Client.name.
> 
> Does anyone know how to access a member of this contained object with jsp
> tags?
> 
> Thanks,
> John
> 
> ---------------------------------------------------------------------
> 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