Dmitry, Dmitry wrote: > There are two servlets on my server (tomcat), each of them using > different directories to store templates. But as Velocity.init() > could be run only once per JVM (and not a servlet context) - i can > specify only one path and another system wont work.
Technically, Velocity.init() could be called once per ClassLoader, so if you put your velocity.jar into your webapp's lib directory (instead of using one container-wide copy), so it's not "once per JVM". As Rodrigo points out, you should not use the Velocity class statically if you want to do this sort of thing. -chris
signature.asc
Description: OpenPGP digital signature
