Hi Christian,

> I'd like to use a macro on the right side in a #set statement. But I
> cannot get it working. Any ideas or help is appreciated (Yes, I am a
> newbie in vtl and velocity).
> I've tried :
> 
> The obvious (wrong):
> #set( $foo = #mymacro( "arg1" ) )
> 
> The next idea (also wrong)
> #set ( $quot =  '"' )
> #set ( $foo = "#mymacro( ${quot}arg1${quot})" )
> $foo
> 
> Can someone point me in the right direction? Thanks in advance!
You just can't.  Please read the following:
   http://jakarta.apache.org/velocity/user-guide.html#Set
   http://jakarta.apache.org/velocity/user-guide.html#Velocimacros

What you can do, is pass the LHS to the macro and have the macro set it
for you.  (Whatever it is you are trying to do...)

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai([EMAIL PROTECTED])

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

Reply via email to