You should use the Formal Reference Notation - enclose your references
in {} brackets.
in this case:
000000112012010Interpay${firstKey}0039252677${second}
will cover it
check
http://jakarta.apache.org/velocity/user-guide.html#Formal%20Reference%20Notation
for more info
- simon
Colin Chalmers wrote:
>
> Hi,
>
> I have to add a number of strings from a template into one long string and am
>experiencing a number of problems.
>
> For example if I define as such
>
> 000000112012010Interpay$firstKey0039252677$second
>
> Things go wrong since Velocity can't find the keys. Not surprising!!
>
> so I would rather have
>
> $firstKey = colin
> $second = chalmers
>
> 000000112012010Interpay $firstKey 0039252677 $second
>
> to produce try to produce the following
>
> 000000112012010Interpaycolin0039252677chalmers
>
> I was looking at a texentask similiar to the example on the site to do this from an
>app but I am not getting the output I expected.
>
> Any tips on this?
>
> /Colin