Thanks, Albert.
I also recently modified FlowVelocityGenerator to provide more useful error reporting when the XML document generated from a Velocity template is invalid.
Any testing of these changes is appreciated. Assuming it's bug-free and backward-compatible, I'd like to replace the existing Velocity generator. Let me know what you think.
Regards,
Chris
Albert Kwong wrote:
Hi there,
I am new here, please bear with me. :)
Here's a patch to VelocityGenerator that does several things:
1. Fixed property loading problem.
2. Fixed marco loading problem by lazy loading the template engine.
3. Added ChainedContext.java (borrowed from velocity tools subproject) so that objects in the session, request etc contexts can be accessed directly from velocity templates without specifying session. or request. as prefix.
Hope you find it useful.
Albert