You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Zapta (Teiko)" <za...@teiko.com> on 2001/07/29 22:55:04 UTC

RE: [OT] Javaworld

Looks great. I liked the list of resources at the end of the article.

Here is one suggestion for your email example (which is probably too late
;-)).

We recently implemented a similar email template using velocity and one of
the great
features of Velocity is that it allows to retrun values from the template
back to the
java code (using #set and method calls). We used it to allow the template to
control
not just the body of the message but also the subject line, and the
to,cc,from,bcc fields.

With your merry Christmas example, this could also modify the subject
line of the message.


Tal

> -----Original Message-----
> From: Leon Messerschmidt [mailto:leon@opticode.co.za]
> Sent: Saturday, July 29, 2000 10:58 AM
> To: velocity-user@jakarta.apache.org; velocity-dev@jakarta.apache.org
> Subject: [OT] Javaworld
>
>
> Hi Guys,
>
> Take a look at:
>
> http://www.javaworld.com/javaworld/jw-07-2001/jw-0727-templates.html
>
> ~ Leon
>