wood burning stoves 2.0*
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
Author

Spring Velocity Email Integration

Chitra Jagannathan
Greenhorn

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.

 
GeeCON Prague 2014
 
subject: Spring Velocity Email Integration