RE: T5: using velocity in the app

2008-01-16 Thread Lance Semmens
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

Re: T5: using velocity in the app

2008-01-16 Thread Hugo Palma
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.

T5: using velocity in the app

2008-01-15 Thread AngeloChen960
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