Hello,

  I use JBoss-4.0.1sp1 server, my application uses velocity-1.3.1.  I use 
velocity to create the html pages, and have the following two templates:
(note: I simplified the code somewhat...)

------- macro.vm --------
#macro ( test $nr )
        $nr
#end
-------- end macro.vm -------

------- index.vm ---------
#parse("macro.vm")
<html>
        <body>
#test(1)
#test(2)
        </body>
</html>
------ end index.vm -----

Now I deploy this application on JBoss and open the index page through the 
servlet.  The very first time I open the page, I get this output:
--- output ----
#test(1)
#test(2)
--- end output ---

now when I refresh the page, I get:
--- output ---
1
2
--- output ---

so the first time it won't execute the macro...?  This only happens the first 
time opening the page after a new deployement.  When I copy the whole macro 
into the index.vm file it works, also the first time after deployement, but I 
need the macro in more files, so I want the macro in a seperate file.

Looking forward to any reply,
Eric

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

Reply via email to