The ognl expression translates into java calls.

So client.address.street would translate into

getClient().getAddress().getStreet()

if getClient() or getAddress() return null, boom you get an NPE.

I doubt that if webwork is using OGNL that the behaviour there is any
different from what I have described.

Geoff

On 4/24/06, Angelo Luis <[EMAIL PROTECTED]> wrote:
> I have a Client that have a Adrress and i want to navigate in the object
> graph in that way : client.address.street, without have a null pointer
> exception... how can i do that...
>
> I  kwon that i can do that with webwork. is that a way to do in tapestry???
> Both (tapestry and ww) uses OGNL, so ....
>
> PS; sorry for my english!
>
>


--
The Spindle guy. http://spindle.sf.net
Blog:                  http://jroller.com/page/glongman
Other interests:  http://www.squidoo.com/spaceelevator/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to