Hi, i'm new in the list. Nowadays i'm using
velocity as my template engine and i wonder how
to publish an object in a context and how to
access to its methods from a template file.
I mean something like this:
(in the java file)
...
context.put("TheObject", myobj);
...
(in the template)
...
$TheObject.doAnyTask()
$TheObject.theFirstProperty
$TheObject.getTheFirstProperty()
...
All i get when i try doing it this way are
the labels as they are ('TheObject.doAnyTask()',etc)
and not the actions and contents desired.
Any sugestion?
Regards:
Chaume