velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <>
Subject Re: calling setProperty(float) not possible ?
Date Wed, 11 Jul 2001 19:32:20 GMT
on 7/11/01 9:46 AM, "Rian Schmidt" <> wrote:

> No idea here, but since I always have to read dumb suggestions, I thought
> I'd make one without trying it first...


> Did you try something like:
> $person.setIncome(5000.00)

This might work. You might have to place the number into quotes. What will
happen is that it will get passed into setIncome(String float) and then you
can cast it to a real float.

> $person.setIncome((float)5000)

This definitely won't work. No such thing as casting in Velocity.


View raw message