On Saturday, October 25, 2003, at 03:35 PM, Claude Brisson wrote:
Read the FAQ !
Ouuups, sorry, I forgot we had no FAQ... only frequently asked questions...
From what you say, I guess that you have discovered that macros were inline and thus, provided no stack :-)
There is another solution : using the #local directive : it's under CVS at
jakarta-velocity/contrib/temporary/localdirective/LocalDirective.java
I hope the doc explains how to plug a custom directive, didn't check lately
Just put
userdirective = <classname>
There is a velocity.properties in the directory named above.
geir
CloD
----- Original Message ----- From: "Ahmet ISIK" <[EMAIL PROTECTED]> To: "Velocity Users List" <[EMAIL PROTECTED]> Sent: samedi 25 octobre 2003 20:33 Subject: Re: recursion in velocity?
I have found a solution, albeit not an elegant solution but it works.
the solution is simply providing a stack object to velocity and before a
recursive call, push all variables into stack and after recursive call,
popping all pushed variable values.
Another ideas?
Geir Magnusson Jr. wrote:
On Saturday, October 25, 2003, at 02:11 PM, Ahmet ISIK wrote:
Hi, Is recursive calling of macros in velocity possible, how?
yes - there's an example somewhere.... You should just be able to call
them. There is an example, somewhere... will be able to look and
submit later if you don't find it.
Thanks in advance
-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Geir Magnusson Jr 203-247-1713(m) [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
