File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring Velocity Email Integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Velocity Email Integration" Watch "Spring Velocity Email Integration" New topic

Spring Velocity Email Integration

Chitra Jagannathan

Joined: Apr 21, 2009
Posts: 8
I followed to get started with velocity email configuration for spring based application.
But the resource location is not getting mapped for compiling the template with the Objects.
I have given templateName = "/myTestTemplate.vm";
hTemplateVariables = list of Objects
String body = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, templateName, hTemplateVariables);
When i run the code, I get below error - org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/myTestTemplate.vm'

So, cudnt figure out what type of path it expects.

I agree. Here's the link:
subject: Spring Velocity Email Integration
It's not a secret anymore!