jQuery in Action, 3rd edition
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
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 http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mail.html 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: http://aspose.com/file-tools
subject: Spring Velocity Email Integration
jQuery in Action, 3rd edition