Re: [jexl] how to access properties of nested java dataobject

2010-10-24 Thread Paul Libbrecht
Clouduser,
(that doesn't taste like a name),

provided a is in context of type A and class A has a getter getB() then ${A.b} 
gives you the return of getB().
That's how I always accessed nested java objects.

I don't understand your XML-example though... at least not its relevance for 
jexl.
Can you maybe say which language it is in?

paul


On 25 oct. 2010, at 04:05, cloudsuser cloudsuser wrote:

> Using the syntax "${status}" as defined below i can able to access the value
> of status form JavaBeanObject(A)
> 
>
>${status}
>
> 
> But how to get the value of nested bean object.Example...
> public class A {
>  private String status;
>  private B b;
>  .
>  ..
> }
> 
> How to get the value of b.getStatus(); ? Need to replace
> ${status} to ${b.status}  


-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



[jexl] how to access properties of nested java dataobject

2010-10-24 Thread cloudsuser cloudsuser
Using the syntax "${status}" as defined below i can able to access the value
of status form JavaBeanObject(A)


${status}


But how to get the value of nested bean object.Example...
public class A {
  private String status;
  private B b;
  .
  ..
}

How to get the value of b.getStatus(); ? Need to replace
${status} to ${b.status}