camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramesri <ramesh.sridha...@ihg.com>
Subject Re: How to use escape tool ($esc.xml($somestrwithspclchars)) in camel velocity template
Date Mon, 27 Feb 2012 21:20:34 GMT
Thanks Eric for your input.
Finally, I was able to resolve the problem by doing the following:

<bean id="veloctiyToolsHandler"
class="com.ihg.sfdc.mdm.util.VelocityToolsHandler"/>

and in the route:

<setHeader headerName="esc">
            <method ref="veloctiyToolsHandler"
method="getVelocityEscapeTool"/>
        </setHeader>

where getVelocityEscapeTool() returns an instance of EscapeTool.

cheers
ramesh


--
View this message in context: http://camel.465427.n5.nabble.com/How-to-use-escape-tool-esc-xml-somestrwithspclchars-in-camel-velocity-template-tp5505668p5520087.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message