The camel route define just pass the response without changing any thing.
You can use setHeader DSL to set the content-type to workaround it if you don’t 
want to change the jsp page.

<from uri="servlet:///hello" />
<to uri="http://192.168.81.1:8080/ext/externalApp?bridgeEndpoint=true"/>

<setOutHeader headerName="Content-Type”>
     <constant>text/html</constant>
<setOutHeader>


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, October 25, 2013 at 3:27 PM, gquintana wrote:

> If you want your browser to display the response as a web page, then you
> should set Content Type header with text/html value.
>  
> Gérald
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/a-question-on-servlet-component-tp5742164p5742168.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to