Here is a small standalone test program, It uses my
customized UnicodeFileResourceLoader. But it should
give you a good example how to use it outside of any
app server.
http://koti.mbnet.fi/akini/java/unicodereader/
I have actually used Velocity as a sql query
generator. I have sql template files
Hi!
What is the right way to initialize Velocity outside
of a servlet? My application works fine when I'm using
VelocityViewServlet, but when I'm trying to initialize
Velocity from any standard Java class (with
Velocity.init(absolutePathToPropertiesFile))
Velocity.mergeTemplate always throws
Hello Leo,
For starters, try and initialize velocity with a Properties object loaded
using a Resource. Make sure that velocity.properties is in the classpath.
e.g.
InputStream vProps =
this.getClass().getResourceAsStream(/velocity.properties);
try {
Properties
what version of VelocityTools are you using? and are you trying to
initialize the Velocity singleton within the same application as the
VelocityViewServlet?
have you tried initializing a VelocityEngine instead of the singleton?
On 6/27/05, Leo Asanov [EMAIL PROTECTED] wrote:
Hi!
What is the