Hi Matthias, > I have a question on a programmatic way to use velocity. > > I have a class *hooked* into our framework that should use Velocity > to generate dynamic output. > > Example:
## snip > I used the EventCartridge clazz, added a custom > ReferenceInsertionEventHandler. > Now I was able to replase $foo and $bar with some other HTML code. But I want > to > *replace* $foo with another template code. > > for example something like: ## snip > Ok, when I return it as a String (the second template code) it gets printed, > but when in VelocityContext I have an Array under key list. > > So I think it must be generate a dynamic table in my case, but it only prints > the template code > as a String. > > So is there no way to relpase a Velocity expression/statement (e.g. $foo) > with an other template code? I'm not sure how you're using the EventCartridge, but might the (View)RenderTool help? Well, at least the source for it should. ;) http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/generic/RenderTool.html http://jakarta.apache.org/velocity/tools/view/ViewRenderTool.html Best regards, -- Shinobu -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]