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); 
-- 
View this message in context: 
http://www.nabble.com/Sending-Mail-tp17048957p17048957.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to