velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Wolf" <christian.w...@idbsoft.ch>
Subject some problems in my velocity template
Date Wed, 28 Mar 2001 08:52:39 GMT
Hi all,

I have a problem in a velocity template.

I call the following method in my velocity template :

#set ($anInt = $url.getID())    ## url.getID returns an int
#set ($myPath = $kei.getPath($anInt, $data))

wich corresponds in my java code to :

kei.getPath(int anInt, RunData data)

I have put the "kei" object in context.

My problem is when in hardcode an int in my method, the code run correctly,
but when I write my method like $kei.getPath($anInt, $data)) with the $anInt
variable, the code doen't work !  (maybe a problem between String and int ?)

Any idea ???

- Christian




Mime
View raw message