You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@velocity.apache.org by tim arnold <fl...@hotmail.com> on 2008/04/02 14:38:24 UTC

using velocity to traverse object graph

hello
 
 
i'm interested getting the value of an object field that i must get to using an expresstion to navigate to the correct object. i know i can use OGNL or JEXL or even JXPATH, but if i am limited to using velocity, can someone point to an example on how to do it?
 
thank you very much for any help
TA
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A

Re: using velocity to traverse object graph

Posted by Nathan Bubna <nb...@gmail.com>.
Jexl was originally Velocity based/inspired.  AFAIK, the syntaxes are
still quite similar.  If you'd like a general description, Velocity's
user guide describes how to call methods on an object and gives
examples.

http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#references

On Wed, Apr 2, 2008 at 5:38 AM, tim arnold <fl...@hotmail.com> wrote:
>
>  hello
>
>
>  i'm interested getting the value of an object field that i must get to using an expresstion to navigate to the correct object. i know i can use OGNL or JEXL or even JXPATH, but if i am limited to using velocity, can someone point to an example on how to do it?
>
>  thank you very much for any help
>  TA
>
> _________________________________________________________________
>  Going green? See the top 12 foods to eat organic.
>  http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@velocity.apache.org
For additional commands, e-mail: general-help@velocity.apache.org