You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Mahesh_programmer <ma...@gmail.com> on 2008/05/04 19:21:07 UTC
Sending Mail
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: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org