Re: Users - generating an xml file output file with screen widgets ?

Posted by oceatoon on
URL: http://ofbiz.116.s1.nabble.com/Users-generating-an-xml-file-output-file-with-screen-widgets-tp139205p139209.html

Hi David
thanks for the answer


Is this something returned from an HTTP request through the ControlServlet? If so then on the view-map element in the controller.xml file you need to set the mime-type.

yes  that's exactly where text/html is hard coded (ControlServlet.doGet)
I would like to set the mime-type in th controller.xml to allow text/xml output from a file build with freemarker.
I thought it could simply be a setContentType in the freemarker generation but it seems logical to have it in the controller.xml.

could you please just put me on a track
to how I could set up a mimetype attribute in a controller's view-map line ?
would you know how  I could add handling of an attribute in
<view-map mimetype="text/xml"

Thanks for your help
Tibor

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users