Tom Dunstan wrote:
> Hi
>
> I'm experiencing some odd behaviour using Velocity 1.3-rc1 in conjunction
> with struts and the VelocityViewServlet.
>
> In a template which includes another template using #parse, any macros
> defined in the sub-template don't get rendered the first time the page is
> viewed, but appear after that.
>
> Example:
>
> macro.vm:
> #macro(test, $param)
> Macro: param was $param
> #end
>
>
> test.vm:
> #parse("macro.vm")
> #test("blurg")
>
>
> The first time test.vm is viewed, it shows "#test("blurg")", and subsequent
> times shows "Macro: param was blurg", as expected.
Yup, I can reproduce the same problem here but I can't explain. Geir,
any suggestions?
A colleague reported another very strange macro-related problem to me.
He is using the VelocityStrust package to create the view of a Struts
application. He has defined several macros in the VM_global_library.vm
file. He reports that on the very first request to a vm file after startup,
the content of VM_global_library.vm is display in his browser for a
split second. Then it is overloaded with the requested template.
This is baffling me. How is this possible?
Gabe
>
> Any suggestions?
>
> Thanks
>
> --
> Tom Dunstan
> Intec Consulting Group
> Tel: +61 8 8359 2332
> Mob: 0417 895 244
> [EMAIL PROTECTED]
>
--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>