use VelocityEngine velo = new VelocityEngine(); velo.setprops... velo.init();
and will work per servlet, per webapp, per whatever -----Original Message----- From: Dmitry [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 8:58 AM To: [email protected] Subject: Configuration per servlet? Hello everybody, 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. Another way to go - is to include both directories in loader path, but then i get a collision, since i have similar file structure in both template directories (i.e. both are web systems, that both have register/form.vm file (which differ ofcourse)). Is there any way to configure Velocity per servlet context, and not by the whole tomcat context? If there is not - how do people solve it usually? Thanks in advance. -- Best, Dmitry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
