You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Thomas Miskiewicz <th...@ultranet-software.de> on 2003/02/28 23:15:05 UTC
relative path to templates in velocity.properties?
Hallo!
I looked at the forumdemo example and I see that the path to
the templates is relative there and it works somehow. I tried
that too in my sample application and it just doesn't work.
<!--------------------- web.xml ----------------------->
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>Test</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/velocity.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
</web-app>
<!--------------------- velocity.properties ----------------------->
file.resource.loader.path = WEB-INF/templates
runtime.log = logs/myapp_velocity.log
I tried all possible combination of paths to the tamplates, except
full path, but now way!
Thanks
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org