velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re:
Date Fri, 20 Jul 2007 17:36:00 GMT
wrap it in quotes (and i'd recommend using formal notation for clarity):

#set( $spanId = "${childElement}${newRowNum}" )

On 7/20/07, Firkus, Robert <Robert.Firkus@roundys.com> wrote:
> How do you concatenate a string to numeric variable.
>
>
>
> For example...
>
>
>
> #set ($newRowNum = $rowNum-1)
>
> #set ($spanId = $childElement$newRowNum)
>
>
>
>
>
> Errors out on the second set
>
>
>
> Thanks
>
> Bob
>
>
>
>
> -----------------------------------------------------
>
> The information transmitted is intended only for the person
> or entity to which it is addressed and may contain confidential
> and/or privileged material.
> Any review, retransmission, dissemination or other use of,
> or taking of any action in reliance upon this information
> by persons or entities other than the intended recipient is
> prohibited.
> If you received this in error, please contact the sender
> and delete the material from any computer.
>
> -----------------------------------------------------
>

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


Mime
View raw message