[ 
https://issues.apache.org/jira/browse/VELOCITY-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Brisson closed VELOCITY-743.
-----------------------------------
       Resolution: Won't Fix
         Assignee: Claude Brisson
    Fix Version/s: 2.x

The formal reference notation purpose is to separate a reference for outer 
text, but should change valid characters in variable names.


> The character  ":" if present within the curly braces of a variable throws 
> exception
> ------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-743
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-743
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.6.2
>         Environment: JRE 6, Apache tomcat 6.0.18
>            Reporter: Vinay
>            Assignee: Claude Brisson
>            Priority: Minor
>             Fix For: 2.x
>
>
> I am trying to write a template that is customized like this
> -----------------------------------------------------------------------------
> <hi>
> <variable1> ${EPL_JOBTITLE:varB_EPL} </variable1>
> <variable2>${SPL_EMPLOYEENUMBER:varA_SPL} </variable2>
> </hi>
> -----------------------------------------------------------------------------
> Now the ${EPL_JOBTITLE:varB_EPL} is custom parsed and replaced with the 
> appropriate values in the context.
> However, as soon as the Template is loaded by the velocity engine I get a 
> Template Parse Exception : 
> Encountered ":varB_EPL}\r\n\r\n\r\n" at MY Script - 1\Test this.vm[line 1, 
> column 15]
> Was expecting one of:
>     "}" ...
>     <DOT> ...
> How is the ":" character an invalid one within braces ? Shouldn't it be 
> supported within a variable name?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to