Try to only escape the '$' character, see
http://velocity.apache.org/engine/devel/user-guide.html#escapinginvalidvtlreferences
HTH,
-Lukas
On 09/23/2011 12:12 AM, Params wrote:
Thanks Robert, I tried couple of combinations and found this to work:
<value>#set($varline = '${wf:errorCode("wordcount")}') ${varline}</value>
However, the display text I now get as html is:
<value> ${wf:errorCode("wordcount")}</value>
Is there a way, I can get the wordcount inside single quotes?
Following three combinations don't work:
<value>#set($varline = '${wf:errorCode(\'wordcount\')}') ${varline}</value>
<value>#set($varline = "${wf:errorCode('wordcount')}") ${varline}</value>
<value>#set($varline = "${wf:errorCode(\'wordcount\')}") ${varline}</value>
--
Thanks,
Params
--
View this message in context:
http://maven.40175.n5.nabble.com/APT-Issue-with-adding-xml-code-snippets-as-Verbatim-tp4831524p4831674.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]