I am using velocity, springs & Ibatis to send mails.
DataSourceResourceLoader class is overridden at the start of the server which fetches the template from DB
getMailMapClient().queryForObject("fetchTemplate", pParameter);
String template = (String) pParameter.get("template");
Now I want to set the template in a vm file dynamically. How do I do it?
While calling mergeTempalateIntoString method, what should the string templateLocation contain?
VelocityEngineUtils.mergeTemplateIntoString(aVelocityEngine, templateLocation, model);