You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2002/04/10 16:30:17 UTC

Re: What are my options for setting the template to?

On 4/10/02 10:39 AM, "Shane Webb" <sh...@paradise.net.nz> wrote:

> Hi
> 
> I was wondering is there any other way to point Velocity to a template
> file. Say for example an http address.

Yes - there is an unsupported URLResourceLoader example in

  jakarta-velocity/whiteboard/geir

Which you might have to get out of cvs (you can do it with a web browser) as
its most likely not in the distro.

> 
> I'm writing a (servlet) program that is going to be hosted on a multiple
> web servers and would like a way to keep all the templates in one place.
> There doesn't seem to be any documentation on how Velocity finds it's
> templates (I only found out by looking at an code example).

Well, the dev guide has a big section on resource configuration.  Take a
look a that....

 
> Any help would be appreciated.
> 
> Shane
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
The bytecodes are language independent. - Sam Ruby  


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: What are my options for setting the template to?

Posted by Shane Webb <sh...@paradise.net.nz>.
> 
> Yes - there is an unsupported URLResourceLoader example in
> 
>   jakarta-velocity/whiteboard/geir
> 
> Which you might have to get out of cvs (you can do it with a web browser) as
> its most likely not in the distro.

Thanks Geir, I take a look.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>