I am working on a web project that has a velocity template that uses a parse 
statement to include a sub-template BUT it is not able to find the 
sub-template.:

#parse( "eventmain.vm" )


My velocity.properties file is configured with two resource loaders:

resource.loader = url, webapp
url.resource.loader.class = 
org.apache.velocity.runtime.resource.loader.URLResourceLoader
url.resource.loader.cache = false
webapp.resource.loader.description = Velocity File Resource Loader
webapp.resource.loader.class = 
org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.path = /template
webapp.resource.loader.cache = false

Where do I need to place the sub-template eventmain.vm? The documentation says 
TEMPLATE_ROOT but what is that in my case?

Thanks,
george


Reply via email to