velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
Subject Template question
Date Tue, 12 Jul 2011 12:56:43 GMT

Hi,

Using Velocity 1.6.2 with Spring 3.1.  I have a template with lines like ...

            <TD>$stats.shortestTimeBetweenLeads</TD>

and I populate this template using 

		final String emailBody = VelocityEngineUtils.mergeTemplateIntoString(ve,
template, map);

so what value do I put in "map"?  What I'm trying right now isn't working,
which is

		final Map statsMap = new HashMap();
		stastMap.put("shortestTimeBetweenLeads",
stats.getShortestTimeBetweenLeads());
		final Map<String, Object> map = new HashMap<String, Object>();
		map.put("stats", map);

Thanks for any advice, - Dave
-- 
View this message in context: http://old.nabble.com/Template-question-tp32045559p32045559.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


Mime
View raw message