velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: render.eval()
Date Mon, 20 Sep 2004 22:23:37 GMT
Hi Larry,

> Why doesn't the following work while I'm running DVSL?:
> 
>         #set($aString = "")
>         #set($render = 
> $aString.class.forName("org.apache.velocity.tools.generic.RenderTool").newInstance())
>  
>       #foreach($param in $params)
What's in $params?

>         #set($name = $param.attrib("name"))
>         #set($value = $o.get($name))
What's in $o?

>           ##set($s1 = "#set($$name = '$value')")
Are you deliberately commenting here?

>           % $render.eval($context, '#set($$name = "$value")' )
>           % $render.eval($context, "$name = $$name")
>         #end
> 
> It prints 
> 
>  % $render.eval($context, '#set($$name = "$value")' )
>  % $render.eval($context, "$name = $$name")
And last but most important, how do you want it to print?

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai(shinobu.kawai@gmail.com)

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message