This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Velocity Email Integration
 
Similar Threads
Loading Velocity Templates in Tomcat Applications
apache velocity #foreach loop
passing dynamic list into velocity template
Passing arguments to function passed to event click function.
Help me eradicate xsl from my system