velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Mielnik <tomasz.miel...@tdcinternet.pl>
Subject Re: velocity runs method twice
Date Thu, 01 Aug 2002 09:50:08 GMT
Geir Magnusson Jr. wrote:

> I does look like the template is getting rendered twice.

OK i solved that problem.
i did something like this:

ctx.put ("errormsg",errormsg);
and then calling $errormsg.getMEssage (); didn't work.
but whe i do

ctx.put ("errormsg",errormsg.getMessage());
ant in template:
#foreach($emsg in $errormsg)
$emsg
#end

it work and it solves the problem but btw i wonder why previus verions 
was parsed twice? it should not. any ideas?

-- 
---t.m.-----------------------------
Tomasz Mielnik / TDC Internet Polska


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message