velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cocosila" <cocos...@home.ro>
Subject Re: String to Int
Date Tue, 10 Dec 2002 09:24:06 GMT
Hello, 

Your sample code works perfect:

 #set($int = 1)
 #set($val = $int.parseInt("4"))

 #foreach($val in [0..$val])
  $val
 #end

But when I tried to do the same with a public final 
class defined by me:

public final class MyClass {

 public static final String process(Map map) {
 ..........
 }
 
}

the following syntax does not work:
 $myClass.process($map)
 
Any suggestions ?

Best regards,
 Dan


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


Mime
View raw message