Re: Setting response as text/xml
Posted by Jacopo Cappellato on
URL: http://ofbiz.116.s1.nabble.com/Setting-response-as-text-xml-tp169697p169698.html
This is how the application/pdf is set:
<view-map name="OrderPDF" type="screenfop"
page="component://ATM_order/widget/ordermgr/OrderViewScreens.xml#OrderPDF"
content-type="application/pdf" encoding="none"/>
I think you could use content-type="text/xml"
Jacopo
Leon Torres wrote:
> How do I set the response to text/xml in the controller? I'm trying to
> get Ajax to receive an XML document, which requires the response be mime
> type text/xml.
>
> An alternative would be to use a toolkit's text -> dom converter, but
> that's iffy.
>
> - Leon
>