You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Firkus, Robert" <Ro...@roundys.com> on 2007/07/20 18:40:43 UTC

(Unknown)

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.

-----------------------------------------------------

Re: your mail

Posted by Barbara Baughman <ba...@utdallas.edu>.
Try
#set ($spanId = "$childElement$newRowNum")

Barbara Baughman
X2157

On Fri, 20 Jul 2007, Firkus, Robert wrote:

> How do you concatenate a string to numeric variable.
>
>
>
> For example...
>
>
>
> #set ($newRowNum = $rowNum-1)
>
>
>
>
>
>
> 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


Re:

Posted by Nathan Bubna <nb...@gmail.com>.
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