You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Nathan Bubna <nb...@gmail.com> on 2007/07/20 19:36:00 UTC

Re:

wrap it in quotes (and i'd recommend using formal notation for clarity):

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

On 7/20/07, Firkus, Robert <Ro...@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