File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Velocity Email Integration

 
Chitra Jagannathan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic