On Thu, Feb 23, 2012 at 4:33 PM, Christian Müller <christian.muel...@gmail.com> wrote: > Did you something like > exchange.getIn().setHeader("esc", > org.apache.velocity.tools.generic.EscapeTool.class); > > Than you have to use: > $headers.esc.xml($headers.addrLine1) > > Works for us with a custom formatter tool... >
How would setting a header with a key "esc" with a value of a .class, allow Velocity to know to instantiate and use the EscapeTool ? Also does this require velocity-tools JAR on the classpath? If not maybe we can added it by default to camel-velocity? > Best, > Christian > > On Thu, Feb 23, 2012 at 3:49 PM, ramesri <ramesh.sridha...@ihg.com> wrote: > >> Hi Claus >> >> Please help me out. I am stuck with this and couldnot proceed. >> >> Thanks >> Ramesh >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/How-to-use-escape-tool-esc-xml-somestrwithspclchars-in-camel-velocity-template-tp5505668p5508249.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/