On Mon, 16 Oct 2000, WATKINS, Andy, FM wrote:

> Here at Royal Bank of Scotland, we're occasionally using WebMacro within 
> EJBs to deliver an HTML string back to the servlet for display on the
> client.
> 
> This seems a very useful thing to do, and is not easily accomplished by
> JSP's.
> 
> The EJB spec forbids access to file io within method calls, and also forbids
> threading within method. Is it possible that Velocity can be configurable so
> that file io etc is not used? (Reading an HTML template from a URL _is_
> permitted
> however).

Right now there is an interface for a template loader, and
so far there is only one template loader which is file based:
FileTemplateLoader. But you could very easily create an
URLTemplateLoader and thus avoid any file io.

The default template loader is specified in the velocity.properties
file. You could probably make yourself an URL template loader
very quickly, change the velocity.properties and you're on
your way!

jvz.

---
Jason van Zyl
[EMAIL PROTECTED]

Reply via email to