Re: tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Markos Charatzas
Hello Michael, In a servlet environment I would recommed that you use a org.apache.velocity.tools.view.servlet.WebappLoader with the loader.path specified as you have it already. Have a good week :) Markos On Sunday 20 February 2005 19:57, Michael Salmon wrote: Just a follow-up. I found that

Re: Logger error with multiple Velocity engines

2005-02-21 Thread Will Glass-Husain
Hi Andrea, Thanks for the bug report. Would you mind posting this on Bugzilla? http://issues.apache.org/ There's a couple of issues with the log4j system (the others involve closing the Logger properly). I'd like to work on them all at once after finishing current stuff. Best, WILL -

Re: tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Nathan Bubna
beyond just the WebappLoader, the VelocityTools project is also home to the VelocityViewServlet (designated successor of the deprecated VelocityServlet), and several simple, drop-and-go example apps you can play with until you get things working. basically, if you're developing a webapp with

tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Michael Salmon
hi folks my templates don't load from where I want. In particular here is what I'm doing: 1. servlet extends VelocityServlet. and calls Velocity.init(). I dont override loadConfiguration() 2. In my webapp, web.xml I define the specific properties file:

Re: tomcat 4.1.31 and velocity - template location problem

2005-02-21 Thread Nathan Bubna
personally, i think Markos gave you the best answer already. you should use the WebappLoader from the VelocityTools project. The FileResourceLoader that Velocity uses by default is not very webapp friendly. there are ways to get it working in web applications, but in general they are not