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: Bug
Affects Versions: 1.6.2
Environment: JRE 6, Apache tomcat 6.0.18
Reporter: Vinay
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]