>> > 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.

You also need to make sure that the properties are passed to your
servlet.  Do you have an element like:

      <init-param>
        <param-name>properties</param-name>
        <param-value>WEB-INF/conf/velocity.properties</param-value>
      </init-param>

nested in <servlet> in your web.xml?

Toby

PS. We're getting OT for this list - please follow up on velocity-user.




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

Reply via email to