Re: Wrong evaluation results with velocity 1.6.2

Erik Hatcher <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
${v.charAt(0)}a.xx should do the trick.  When in doubt, surround with curly brackets :)

	Erik

On Sep 19, 2012, at 07:31 , [email protected] wrote:

> Hi,
> 
> The evaluation of the following Velocity Template produces an invalid 
> output:
> 
> #set($v = "a")
> $v.charAt(0)a.xxx
> 
> I would expect aa.xxx as evaluation result, but velocity returns only aa - 
> the dot and the xxx suffix are cut off.
> If a whitespace is inserted before a.xxx, then the suffix is not cut off. 
> But that solution is not possible for me.
> 
> Is this a known bug? Is there a fix or work-around for this?
> 
> Kind regards
> 
> Christoff Schmitz
> 
> =======================================================
> Disclaimer
> The information contained in this e - mail and any attachments
> ( together the "message") is intended for the addressee only and may 
> contain confidential and/or privileged information. If you have received
> the message by mistake please delete it and notify the sender and do
> not copy or distribute it or disclose its contents to anyone.
> 
> FINARIS Financial Software Partner GmbH
> Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
> Registered at Frankfurt/Main, HRB 52873
> 
> Managing Directors: 
> Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
> =======================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.