FileResourceLoader and resource loaders generally: getting the context of a request

2006-11-09 Thread Townson, Chris
Hi all, I'm just trying to work out if this is possible and how it would be done: The problem: Currently, we're using FileResourceLoader to retrieve templates from the filesystem in the normal. I'm in the process of putting together a slightly customized version of this to resolve

Re: FileResourceLoader and resource loaders generally: getting the context of a request

2006-11-09 Thread Claude Brisson
Velocity 1.5 supports relative resource loading with #include and #parse. The 1.5 release is not ready yet but should be quite stable. You can grab it from subversion. To enable relative resource loading, put the following line in your velocity.properties file: eventhandler.include.class =

RE: FileResourceLoader and resource loaders generally: getting thecontext of a request

2006-11-09 Thread Townson, Chris
excellent ... I've started moving a lot of our stuff over to 1.5 recently and we're certainly planning on upgrading for production purposes asap. Can you think of a solution for 1.4 in the meantime? ... or perhaps best not to bother with this as it looks like I would only have to remove my own