Normally, you specify the root template directory in "file.resource.loader.path" then provide relative paths to that directory. An advantage of this approach is that "file.resource.loader.path" can be a comma separated list of paths, each of which is searched in order.
However in Velocity 1.5 (beta) if you set "file.resource.loader.path" to empty string, then you can specify an absolute path with getTemplate(). WILL On 1/29/07, Mohsen Saboorian <[EMAIL PROTECTED]> wrote:
Hi, I've noticed that it is not possible to have "name" in Velocity.getTemplate(name) absolute path. How can I refer to a resource with absolute path? If all of my .vm files are not in the same folder, then should I set "file.resource.loader.path" each time? Thanks. -- View this message in context: http://www.nabble.com/Absolute-resour-path%D9%94-tf3136124.html#a8690104 Sent from the Velocity - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Forio Business Simulations Will Glass-Husain [EMAIL PROTECTED] www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
