velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daljeetsingh <daljeetsi...@softhome.net>
Subject how to use custom velocity.properties
Date Tue, 03 Jul 2001 08:13:03 GMT
Hello

I need to use a custom velocity.properties file for all the servlets in
a web application.

In order to do that I added the following to the web.xml
    <servlet >
      <servlet-name>org.apache.velocity.servlet.VelocityServlet</servlet-name>
      <servlet-class>org.apache.velocity.servlet.VelocityServlet</servlet-class>
      <init-param>
         <param-name>properties</param-name>
         <param-value>velocity.properties</param-value>
      </init-param>
    </servlet>
    
This change has not been sufficient for the velocity servlet to use the
custom properties file in the loadConfiguration method ??

What's wrong?

Thanks

Mime
View raw message