You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Claude Brisson <cl...@renegat.net> on 2004/07/14 21:19:21 UTC

Re: dynamic properties with verlocity?

Hi

If $foo has a generic getter, you can do :
$foo.get("bar")

Otherwise, you need to add a tool in your context, either the RenderTool
or the ViewRenderTool in a VelocityViewServlet environment.

See 
http://jakarta.apache.org/velocity/tools/generic/
and
http://jakarta.apache.org/velocity/tools/view/

CloD

----- Original Message ----- 
From: "Robert Brandner" <ro...@chello.at>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Wednesday, July 14, 2004 8:35 PM
Subject: $foo.$bar - dynamic properties with verlocity?


> hi!
> is there any possibility to use something like $foo.$bar in any way?
> this would save me a lot of work programming introspection by my own.
> thanx, robert
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>

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