Dear Toby,

Thank you for your reply.

Here is my content from velocity.properties

-----------------------------------------
resource.loader = classpath
classpath.resource.loader.class = 
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
file.resource.loader.path = .

-----------------------------------------------------
I made a template.jar under WEB-INF/lib.

But it still does not work.

Any special path need to reference in getTemplate?

I look forward to hearing from you.

Best Regards
Leigh





-----Original Message-----
From: "toby cabot" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue, 15 May 2001 17:26:52 -0400 (EDT)
Subject: Re: [JBoss-user] Velocity & JBoss

> > I use Velocity as my web interface and JBoss as J2EE.
> 
> > Where is the root directory relative to servelet running by JBoss &
> > Tomcat?
> 
> I believe that it's the directory where you are when you run jboss.
> 
> > Anyone knows how to solve it?
> 
> I use Velocity's classpath resource loader.  Jar up your templates,
> drop
> the jar into the lib directory of your war file, and add:
> 
> resource.loader = classpath
> classpath.resource.loader.class =
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> 
> to WEB-INF/conf/velocity.properties.
> 
> HTH,
> Toby
> 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to