On Sun, 18 Mar 2001, Tim Colson wrote:
> 1) Is there a FAQ and/or mailing list archive that I can have a look
> through?
Haven't heard back on this one yet - but did manage to find this archive:
http://marc.theaimsgroup.com/
> 2) where is the Velocity runtime is attempting to read in templates
Gier replied:
> In is the 'current directory' by default, and can be specified
> precisely via the properties file. Read the bit in the developers guide
> about properties, and look at the examples.
Read the guide a third time. I think perhaps the "Fundamental Pattern"
code example in the docs is missing a crucial line - Velocity.init();
After adding the init (which is mentioned in the other examples, but not
the fundamental one) - my template loads and runs swimmingly. :-)
Another note - seems that I needed to import two more classes to make
things happy (again, these aren't noted in the Fundamental Pattern)
import org.apache.velocity.app.Velocity;
import org.apache.velocity.Template;
Thanks!
Timothy