velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lawrence.Si...@MSCsoftware.com
Subject render.eval()
Date Mon, 20 Sep 2004 21:18:37 GMT
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)
        #set($name = $param.attrib("name"))
        #set($value = $o.get($name))

          ##set($s1 = "#set($$name = '$value')")
          % $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")

I put the following JAR files in my classpath:

velocity-dep-1.3.1.jar
velocity-tools-*.jar

With thanks,

Larry Siden, IBS consultant, Viper team
x72612
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message