Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4C3411221 for ; Tue, 15 Apr 2014 17:13:44 +0000 (UTC) Received: (qmail 13302 invoked by uid 500); 15 Apr 2014 17:13:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13250 invoked by uid 500); 15 Apr 2014 17:13:43 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 13242 invoked by uid 99); 15 Apr 2014 17:13:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 17:13:42 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 17:13:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Wa6v7-0007QX-FH for users@camel.apache.org; Tue, 15 Apr 2014 10:13:17 -0700 Date: Tue, 15 Apr 2014 10:13:17 -0700 (PDT) From: dunnlow To: users@camel.apache.org Message-ID: <1397581997468-5750259.post@n5.nabble.com> In-Reply-To: References: <1397573564470-5750248.post@n5.nabble.com> Subject: Re: Set header from velocity template MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sorry, I should have given more detail. I am using velocity to create web pages. My template is an html formatted document (about 40 lines) that uses existing exchange headers. (This gets turned into a web page downstream.) In my (xml) route I have something like: However, this puts my html template into the BODY. I need to keep the current body intact (downstream routes depend on having the original message) so I want to do this same evaluation, but put the new evaluated template it into a HEADER. Thanks again, -J -- View this message in context: http://camel.465427.n5.nabble.com/Set-header-using-velocity-template-tp5750248p5750259.html Sent from the Camel - Users mailing list archive at Nabble.com.