velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arik Levin <ari...@trendline.co.il>
Subject RE: Casting in VTL
Date Wed, 21 Feb 2001 19:17:14 GMT
Hi.
Thanks for the quick response.
Actually not, cause it is being put to the context as a String value.
It is actually a jdom.org.Element.getChild("bla bla").getText()

Arik

-----Original Message-----
From: gmj@mta2.srv.hcvlny.cv.net [mailto:gmj@mta2.srv.hcvlny.cv.net]On
Behalf Of Geir Magnusson Jr.
Sent: Wednesday, February 21, 2001 9:46 PM
To: velocity-user@jakarta.apache.org
Subject: Re: Casting in VTL


Arik Levin wrote:
>
> Hi.
> I'm new to Velocity.
> If I have :
> #set ($a = "1")
> and I want to use a's value as a number, for example :
> #set ($a = $a + 1)
> Is there any thing I can do ?

Not really.  can you set a's value to 1 a la

#set($a = 1 )

?

--
Geir Magnusson Jr.                               geirm@optonline.com

Developing for the web?  See http://jakarta.apache.org/velocity/


Mime
View raw message