on 8/24/01 1:50 AM, "Jaume Soriano" <[EMAIL PROTECTED]> wrote:

> 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

Did you read the documentation on the website? It explains all of this quite
clearly.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>

Reply via email to