Shinobu Kawai said:
> > I always used mergeTemplate() method of VelocityEngine. Since the first
> > param is a string
> > pointing to a file and this time I need to load templates from an http
> > url, I wonder how I could arrange this. Or should I use evaluate()?
> OR, you could make a UrlResourceLoader.
>
http://jakarta.apache.org/velocity/api/org/apache/velocity/runtime/resource/loader/ResourceLoader.html
>
> > Which is the difference?
> If you make the ResourceLoader, you will be able to use
> mergeTemplate() like the rest of your templates, and if not, you'll
> have to make your own Reader.

i'm pretty sure there already is a working URLResourceLoader out there in the
contrib or geir's whiteboard stuff (probably the latter).  search the list
archives or even just google and you can probably find it pretty easily.

Nathan Bubna
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to