Pierre, Missed your second question. Use the ClasspathResourceLoader to load templates from a classpath or jar file.
best, WILL On Sun, Oct 12, 2008 at 7:13 PM, Will Glass-Husain <[EMAIL PROTECTED]>wrote: > Pierre, > > Velocity 1.5 does not support creating an included file of macros. You can > do this with Velocity 1.6 beta1. > > best, > WILL > > > On Fri, Oct 10, 2008 at 12:39 AM, Pierre Lindenbaum < > [EMAIL PROTECTED]> wrote: > >> Hi Velocity, >> >> I'm a newbie with velocity but I've already enjoyed at generating java >> code to handle the entities of a set of mysql tables ( >> http://plindenbaum.blogspot.com/2008/10/java-wrappers-for-tables-of.html). >> >> Now, I'm looking for a sample of code that would show : >> >> * the best way to declare a set of macro that will be shared among >> different templates. I've already tried >> to use >> #parse("macros.vm") >> >> but the engine complained that the macro were already defined. >> >> * how should I code Velocity so it could >> find the templates in the packaged jar file. >> >> Many thanks in advance >> >> Pierre >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Forio Business Simulations > > Will Glass-Husain > [EMAIL PROTECTED] > www.forio.com > -- Forio Business Simulations Will Glass-Husain [EMAIL PROTECTED] www.forio.com
