velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Davison <dar...@davison.uk.net>
Subject Re: Fw: exception using ViewRenderTool
Date Wed, 09 Jun 2004 23:08:41 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 09 June 2004 22:08, Nathan Bubna wrote:

> ah.  yeah, the RenderTool currently uses the Velocity singleton.  if that
> hasn't been initialized, then $render.eval($foo) won't work.  try calling
> Velocity.init() before using the RenderTool.

ok, if I do it works.  Not sure where the differences are: 
velocityEngine.init() which Spring uses internally and Velocity.init() both 
seem simply to delegate to RuntimeInstance.init() - what occurs that makes 
the Velocity.init() necessary for the render tool?


> logging issues the switch causes.  i'll see if i can't find a few hours
> this week(end) to finish that up.

that'd be handy - thanks.

- -- 
Darren Davison
Public Key: http://www.davison.uk.net/pages/key.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAx5h5KLMLAN01aw0RAnaUAKCd0q5kykau5z7WsmzkF6BgeEjKzgCfc/8X
18S5ffVouswk3+RnN+KsqvI=
=p+3P
-----END PGP SIGNATURE-----

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


Mime
View raw message