2009/12/9 George, Nixon <[email protected]>:
> 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?

That would be your webapp.resource.loader.path property and the
conspicuously absent  url.resource.loader.root property.


> Thanks,
> george
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to