t: T5: using velocity in the app
hi,
I need to use velocity's template to format an email, something like
this:
VelocityEngine ve = new VelocityEngine();
ve.init();
Template t = ve.getTemplate("email.vm");
but always got :ResourceNotFoundException
any idea how to use Velocity wit
Your problem is not specific to Tapestry. You can use Velocity in a
Tapestry application just like you use anywhere else.
In this case, i think the problem is that your not setting the velocity
resource loader, and by default velocity tries to load the file you
provide from the current directory.
hi,
I need to use velocity's template to format an email, something like this:
VelocityEngine ve = new VelocityEngine();
ve.init();
Template t = ve.getTemplate("email.vm");
but always got :ResourceNotFoundException
any idea how to use Velocity with Tapestry 5? thanks.
A.C.
--
View this mess